Tuesday, January 24, 2012

Sample C Program To Input & Multiply Two Numbers.

#include
#include

void main()
{

clrscr();
int a, b, c;

printf(" Enter the numbers to be multiplied: ");
scanf(" %d %d ", &a, &b);
c = a * b;

printf(" The product of the numbers is: %d ",c);
getch();

}

No comments:

Post a Comment