Delicious Digg Facebook Favorites More Stumbleupon Twitter

Friday 7 September 2012

program for arithmetic operators


           Program for Arithmetic Operators


           #include<stdio.h>
              main()
             {
                int a,b,c;
                clrscr();
                printf("enter a,b values=%d%d",&a,&b);
                c=a+b;
                printf("c=%d",c);
                c=a-b;
                printf("c=%d",c);
                c=a*b;
                printf("c=%d",c);
                c=a/b;
                printf("c=%d",c);
                getch();
             }
             output :-
                            
                          enter a,b values= 2 4
                          c=6
                          c=-2
                          c=8
                          c= 0


   
 
 

0 comments:

Post a Comment