How do I set width to something but only if it divisible by a number? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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