Wednesday 15 January 2014

Filled Under:

/* Simple Program Displaying The Use Of Basic Mathematical Operators */

/* Simple Program Displaying The Use Of Basic Mathematical Operators */
#include<stdio.h>
#include<conio.h>
void main()
{
    int num1,num2,add,sub,multi,div,modulo_div;
    printf("Enter Two Numbers:");
    scanf("%d%d",&num1,&num2);
    add=num1+num2;
    sub=num1-num2;
    multi=num1*num2;
    div=num1/num2;
    modulo_div=num1%num2;
    printf("\nAddition=%d\nSubtraction=%d\nMultiplication=%d\nDivision=%d\nModulo Division=%d",add,sub,multi,div,modulo_div);
    getch();
}

OUTPUT


0 comments:

Post a Comment