0

How can we give space between two line statement?

i.e Hello world welcome to coding

26th Dec 2016, 2:14 PM
Techworld 436
Techworld 436 - avatar
2 Respuestas
+ 2
cout << "Hello world\nwelcome to coding"; or cout << "Hello world" << endl; cout << "welcome to coding";
26th Dec 2016, 2:24 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
0
use "endl" line manipulator...which is a newline #include<iostream> #include<cstdlib.h> using namespace std; int main() { cout<<"Hello world"<<endl; cout<<endl; cout<<"welcome to coding"; return 0; }
26th Dec 2016, 2:26 PM
Manikanta Nallamalli (Mittu)
Manikanta Nallamalli (Mittu) - avatar