+ 1

How 5 write in 05. For example 18-9=09?

I have to write time 1:00:02, not 1:0:2

10th Jan 2021, 2:19 PM
Î“Î”ÎœÎœÎ±ÎŻÎżÏ‚
Î“Î”ÎœÎœÎ±ÎŻÎżÏ‚ - avatar
2 Answers
+ 2
#include <iomanip> cout << setw(2) << setfill('0') << 18-9;
10th Jan 2021, 2:30 PM
rodwynnejones
rodwynnejones - avatar
+ 2
Oh, thanks man
10th Jan 2021, 2:41 PM
Î“Î”ÎœÎœÎ±ÎŻÎżÏ‚
Î“Î”ÎœÎœÎ±ÎŻÎżÏ‚ - avatar