Input three numbers and find the product of these number.
#include <stdio.h>
#include <conio.h>
void main ( )
{
int co = 1, no, pro = 1;
clrscr ( );
while ( co <= 3 )
{
printf ("\n\t Enter a number.....:"); scanf ("%d",&no);
pro = pro * no;
co ++;
}
printf ("\n\t PRODUCT = %d", pro);
getch ( );
}
No comments:
Post a Comment