// Write a program to enter three number & calculate sum and product. #include<stdio.h> #include<conio.h> void main() { int x,y,z,sum=0,mult=1; clrscr(); printf("Enter three numbers:\n"); scanf("%d%d%d",&x,&y,&z); sum=x+y+z; mult=x*y*z; printf("Sum = %d",sum); printf("Product = %d",mult); getch(); }
Take Pure Information, Always Original Content
Comments
Post a Comment