C program to calculate the product of two number

#include< stdio.h >
#include< conio.h >
void main ()
{
         int x, y, z;
         clrscr();
         printf(" Enter two numbers : ");
         scanf("\n%d\n%d",&x,&y);
         z=x*y ;
         printf(" The product of given numbers is %d",z);
        getch();
}

OUTPUT :

Enter two numbers :
5
4
The product of given numbers is 20

No comments :

Post a Comment