0

Pl tell me the way to put space between two integers in c++

4th Jan 2017, 5:20 PM
Dhruv Bhatnagar
Dhruv Bhatnagar - avatar
4 Answers
+ 7
string a = a + " " + b;
4th Jan 2017, 5:39 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
1. string a="1 2"; 2. cout<<a<<" "<<b; can not be possible to contain a space in two integers. it is not a data type. if any other way, first try on compiler then mention.
4th Jan 2017, 5:48 PM
Nawaj Shareef
Nawaj Shareef - avatar
+ 1
thanks
4th Jan 2017, 5:40 PM
Dhruv Bhatnagar
Dhruv Bhatnagar - avatar
0
through this there will be space in iutput
4th Jan 2017, 5:40 PM
Dhruv Bhatnagar
Dhruv Bhatnagar - avatar