Computer Science, asked by shivamraj90190, 3 months ago

take three numbers as input and display their sum and product on the screen.

Answers

Answered by Anonymous
2

Answer:

C program to find sum and average of 3 numbers. We take three variable num1, num2, & num3. Sum = num1 + num2 + num3, avg = Sum/3.

Answered by syed2020ashaels
0

Answer: The following is some example Python code that does this:

"Input the first number: ") num1 = int

Number 2 is equal to int("Enter the second number: "); input);

Number 3 is equal to int(input("Enter the third number: "))

Product: num1 * num2 * num3; sum: num1 + num2 + num3

print("The sum of the three numbers is: ", sum) ("The sum of the three numbers is: ", sum)

print("The product of the three numbers is: ", product) ("The product of the three numbers is: ", product)

Explanation:

  • This code asks the user to enter three digits, then uses the int() method to turn those inputs into integers. The print() method is then used to output the results of calculating the sum and product of the three values on the screen.

  • Overall, this application is clear-cut and easy to use and completes the work at hand. It introduces some fundamental programming ideas and acts as an excellent starting point for more complicated projects by asking the user for input and carrying out simple computations.

For more questions on Computer Science

https://brainly.in/question/22731028

#SPJ3

Similar questions