C++ program to print a string on the screen.

Q1. Write a C++ program to print a string on the screen.

Solution:

//My first C++ program

#include<iostream.h> //standard input/ouput header file

 

int main()

{

cout<<“WELCOME TO C++ PROGRAMMING”;

 

return 0; //makes the main() finish

}

 

OUTPUT:

WELCOME TO C++ PROGRAMMING

Leave a Reply

Your email address will not be published. Required fields are marked *

51 Views
%d bloggers like this: