Sunday, 15 October 2017

How to write a programme in C++ to display your name, your school name and your class in separate lines.


In this blog we will see how to write a programme in C++ to display your name, your school name and your class, you can do so by following the given steps below.

Step 1: Go to your C++ compiler and type the given programme below.



 #include<iostream.h>
 #include<conio.h>
 void main()
 {
 cout<<your name"<<"\n";
 cout<<"your school name"<<\n";
 cout<<"your class";
 getch();
 }


Step 2: Compile the file and run.
Share:
Categories

0 comments:

Post a Comment