Showing posts with label subtraction. Show all posts
Showing posts with label subtraction. Show all posts

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);
}

Algorithm for Simple Calculator

Step 1 : Start
Step 2 : Read a,b
Step 3 : Print "a + b"
Step 4 : Print "a - b"
Step 5 : Print "a * b"
Step 6 : Print " a / b "
Step 7 : Print " a % b "
Step 8 : Stop

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...