Write a single statement that prints outsideTemperature with a + or – sign. End with newline. Sample output:
+103.500000
#include <stdio.h> int main(void) { double outsideTemperature = 103.5; printf("%+lf\n", outsideTemperature); return 0; }
Output formatting: Printing a maximum number of digits in the fraction.
Write a single statement that prints outsideTemperature with 2 digits in the fraction (after the decimal point). End with a newline. Sample output:
103.46
int main(void) { double outsideTemperature = 103.45632; printf("%.2lf\n", outsideTemperature); return 0; }