Powered by Blogger.

Tuesday, March 12, 2013

5.How we are find out add,substraction,multiplication,division two nunbers?


#include<stdio.h>
int main()
{
    int i,j,add,subtraction,multiplication;
    float division;
    printf("Enter any number:\n");
    scanf("%d%d",&i,&j);
    add=i+j;
    subtraction=i-j;
    multiplication=i*j;
    division=i/j;
    printf("add=%d\nsubtraction=%d\nmultiplication=%d\ndivision=%f",add,subtraction,multiplication,division);
    return 0;
}

2 comments: