Wednesday, 28 August 2013

Write a menu driven program to read two integers & find their sum, difference & product.

#include<stdio.h>
void main()
{
int a,b;
printf("enter two nos:\n");
scanf("%d%d",&a,&b);
printf("addition of two nos is:%d\nsubtraction of two nos is:%d\nmultiplication of two nos is:%d",a+b,a-b,a*b);
}

No comments:

Post a Comment