Professional Documents
Culture Documents
111.1 Assignment C
111.1 Assignment C
#include<stdio.h>
int main (void)
{
int a,b,c,d;
printf("Three number of multiplication");
scanf("%d%d%d",&a,&b,&c);
d= a*b*c;
printf("111.1 ASSIGNMENT MULTIPLICATION RESULT OF THREE NUMBER IS,%d",d);
return 0;
}
Output Screenshot
DISCUSSION
In this multiplication example, three numbers entered by the user is
calculated and printed on the screen. Over here, the user is asked to enter
three numbers which are stored in a, b and c. Then, the product of a, b
and c is evaluated and the result is stored in d. Finally, d is displayed on
the screen using printf().In a,b & c the stored number is 5,5 & 5. And now
notice that, the result of d is 125.