C - Write program to output all immediate values as floats

Requirements

Write program to output all immediate values as floats

Hint

two integer values to be used and generate a result as a float.

Demo

#include <stdio.h>

int main()/*from  ww w . j  a v a 2 s . co  m*/
{
    printf("The total is %.1f\n",16.0+17.0);
    return(0);
}

Result

Related Exercise