Friday 10 March 2017

C Program for Simple Calculator


#include < stdio.h >
main () {
              int a,b ;
              printf ( "enter two numbers ") ;
              scanf ("%d%d",&a ,&b) ;
              printf("\n%d + %d = %d",a,b,a+b);
              printf("\n%d - %d = %d",a,b,a-b);
              printf("\n%d * %d = %d",a,b,a*b);
              printf("\n%d / %d = %d",a,b,a/b);
              printf("\n%d % %d = %d",a,b,a%b);
}

No comments:

Post a Comment

How to Invert an SVG image using CSS ?

You can invert your svg easily by using following css code svg { -webkit-filter: invert(100%); /* safari 6.0 - 9.0 */ filter...