seanrapha246 seanrapha246
  • 21-11-2021
  • Computers and Technology
contestada

Write a C program to declare two integers and one float variables then initialize them to 10, 15, and 12.6. It then prints these values on the screen

Respuesta :

felipegomes220
felipegomes220 felipegomes220
  • 21-11-2021

Answer:

pretty simple, notice, I used '1f' so the float would print only 1 significant number after. Sure you can modify it to make it more readable and not just numbers on the screen, it's up to you

Explanation:

#include <stdio.h>

int main()

{

   int n1 = 10;

   int n2 = 15;

   float f1 = 12.6;

   

   printf("%d %d %.1f", n1, n2, f1);

   

   return 0;

}

Answer Link

Otras preguntas

in beyond the walls by edward abbey what body of water was formed as a result of building of the glen canyon dam
In Emily Dickinson's poem "324" ("Some keep the Sabbath going to Church"), what does the speaker prefer to listen to? A) The choir singing B) Birds singing C) T
What is tradition? Write on your own ways.
what does the m stand for in interphase​
PLZZZZ answer i will give brainliest
To Qualify for the championship a runner must complete the race in less than 45 minutes use t to represent the time in minutes of a runner who qualifies for the
i think of a number , take away 1 and multiply the result by 3
A student answered 76 problems on a test correctly and received a grade of 80%. How many problems were on the test, if all the problems were worth the same numb
If f(x) = 5x2 - 3 and g(x) = x2 - 4x - 8, find (f - g)(x). O A. (- 9)(x) = 4x2 - 4x - 5 O B. (f- g)(x) = 4x2 + 4x + 5 O C. (f- g)(x) = 2x2 - 11 O D. (1-9)(x) =
what is 5 1/6 (-2/5) written as a fraction