Do calculation in printf: float value
#include <stdio.h> int main(void) { printf("Number of seconds in a year: "); printf("%f", 60.0 * 60.0 * 24.0 * 365.0); return 0; }