Kodewick
Start learning →
Starter←→0 / 70

Today's weather

#006StarterOutput2 min

The weather app measured 23.46 degrees, but the screen should show just one decimal place. Use printf to show Today: 23.5 C, the temperature with %.1f (it rounds for you).

Should show
Today: 23.5 C
main.c
#include <stdio.h>

int main(void) {
    double temp = 23.46;
    // your code here: printf the temperature with %.1f
    return 0;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.