Computer Science, asked by kd20058, 4 months ago


1. Write a C program to print the sum and product of three numbers. The
numbers should be taken as input from the user.

Answers

Answered by prothomroy564
1

I hope you want the numbers being input from the side of the user. So, in Python, an example would be:

a = int(input("Enter First Number:"))

b = int(input("Enter Second Number: "))

c = int(input("Enter Third Number: "))

product = a*b*c

print ("The Product is: ",product)

This would do. An example output would be:

Enter First Number: 2

Enter Second Number: 4

Enter Third Number: 5

The Product is: 40

Hope it helps :)

Similar questions