Home | Computer Science


New Line

Defination

It helps to go in next line of the screen.

Two types of new line.
  1. \n
    • Syntax ("cout<<Hello \n;")
  2. endl
    • Syntax ("cout<<Hello<<endl;")

Program
Input

#include <iostream> #include<conio.h> main() { cout << "Hello World!"; cout << "From India "<< endl; cout << "Nice to meet you"; getch(); }


Program
Output