Output generated for the sum prgm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Output generated for the sum prgm

when i run the prgm of sum of 2 nos, it displays direct sum. If it shud display sum= the number? what to do?

6th Oct 2016, 12:57 PM
vinith santhosh
2 Answers
+ 1
cout<<"Sum ="<<a+b;
6th Oct 2016, 1:24 PM
Balaji Rs
Balaji Rs - avatar
- 1
court<<''the sum of two numbers=''>>sum>>endl;
6th Oct 2016, 1:59 PM
Mubasshir Mughal
Mubasshir Mughal - avatar