How to take +7 as single unit in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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

Help

23rd Aug 2019, 6:11 PM
bhanu prakash
1 Answer
+ 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