+ 1

How do I set width to something but only if it divisible by a number?

HELP!!!!

28th Jan 2018, 10:25 PM
Anna
Anna - avatar
2 Antworten
+ 5
if (i%n == 0) cout << setw(5); cout << i;
28th Jan 2018, 11:07 PM
John Wells
John Wells - avatar
0
Is this HTML?
28th Jan 2018, 10:39 PM
Alex
Alex - avatar