asked 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.

asked
User Nspessot
by
8.3k 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
answered
User Ethernetz
by
8.3k points

No related questions found