How to write a programme in C++ to display your name, your school name and your class in separate lines. Published on October 15, 2017 No comments 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: Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment