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
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
India Languages,
2 months ago
Business Studies,
11 months ago