How to take +7 as single unit in c++ | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How to take +7 as single unit in c++

Help

23rd Aug 2019, 6:11 PM
bhanu prakash
1 ответ
+ 1
try:- cout << showpos; cout << 7; // this will output +7 (you can use +7 here also regardless of showpos).
23rd Aug 2019, 7:51 PM
rodwynnejones
rodwynnejones - avatar