Arthimartic operator like plus minus multiiply divide

 /******************************************************************************


                            Online C Compiler.

                Code, Compile, Run and Debug C program online.

Write your code in this editor and press "Run" button to compile and execute it.


*******************************************************************************/


#include <stdio.h>


int main()

{int num1=10,num2=2;

int result = num1+num2 ;


    printf("%d + %d = %d\n", num1,num2,result);

     printf("%d - %d = %d\n" , num1,num2 , result);

     printf("%d*%d=%d\n", num1,num2,result);

     printf("%d/%d=%d\n", num1,num2,result);

    return 0;

}


Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation