1. Engineering
  2. Computer Science
  3. includeltstdiohgt write three c statements that declare the following integer...

Question: includeltstdiohgt write three c statements that declare the following integer...

Question details

Include<stdio.h>

  • Write three C statements that declare the following integer variables and initialize each to zero:
    num1
    num2
    num3
  • Write one C statement that declares the following floating point variable:
    myAverage
  • Write C statements that store:
    125 into num1
    28 into num2
    -25 into num3
  • Write a C statement that stores the average of num1, num2, and num3 into the variable myAverage
  • Write C statements that output the values of num1, num2, num3, and myAverage;
    • with labels like "num1 = ..."
    • each on their own lines
  • Write a C statement to return a 0 at the completion of the program
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution