SOURCE CODE HERE: // Write a program that reads three numbers and print their sum, product and average? // formula: sum = num1+num2+num3, product=num1*num2*num3, average=sum/3 #include int main() { int num1, num2, num3, sum, product, average;
printf(" Enter first number: "); scanf("%d", &num1);
printf(" Enter second number: "); scanf("%d", &num2);
printf(" Enter third number: "); scanf("%d", &num3);
sum = num1+num2+num3; product=num1*num2*num3; average=sum/3;
printf(" Sum of three numbers is: %d", sum); printf(" Product of three numbers is: %d", product); printf(" Average of three numbers is: %d", average);
SOURCE CODE HERE:
// Write a program that reads three numbers and print their sum, product and average?
// formula: sum = num1+num2+num3, product=num1*num2*num3, average=sum/3
#include
int main()
{
int num1, num2, num3, sum, product, average;
printf("
Enter first number: ");
scanf("%d", &num1);
printf("
Enter second number: ");
scanf("%d", &num2);
printf("
Enter third number: ");
scanf("%d", &num3);
sum = num1+num2+num3;
product=num1*num2*num3;
average=sum/3;
printf("
Sum of three numbers is: %d", sum);
printf("
Product of three numbers is: %d", product);
printf("
Average of three numbers is: %d", average);
return 0;
}
Thankyou very much ..❤❤keep uploading the more lectures of computer programming class 10 end exercises and other conceptual programming Question ❤
Thanks for your kind response. If you need help with any specific questions then email us. We will try to resolve your problems. Jazaqallah
Good work
💖
Thanks for your comment. keep supporting
tomorrow is my paper and am currently watching ur videos@@codeandscience