12.6k views
4 votes
Write a C program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, difference, and quotient of the two numbers.

User Nspessot
by
3.8k points

1 Answer

2 votes

Answer:

View Image

Step-by-step explanation:

Initialize your variable as a float or double since you're going to be using fractions in your answer.

User scanf() to get user input.

Print out the sum, product, quotient, and difference between the two numbers.

Write a C program that asks the user to enter two numbers, obtains the two numbers-example-1
Write a C program that asks the user to enter two numbers, obtains the two numbers-example-2
User Ethernetz
by
3.5k points