TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Tuesday 26 May 2020

C++ Output (Print Text) | C++ Output (Print Text) Programming Language | C++ Output (Print Text) In Hindi

C++ Output (Print Text)


The cout object, together with the <<operator, is used to output values/print text:


image of C++ Output (Print Text)

Fig: C++ Output (Print Text)

Example:

#include <iostream>

using namespace std;

int main() {

  cout << "Hello World!";

  return 0;

}


Output:

Hello World

 

You can add as many cout  objects as you want. However, note that it does not insert a new line at the end of the output.


Example:

#include <iostream>

using namespace std;

int main() {

  cout << "Hello World!";

  cout << "I am learning C++";

  return 0;

}


Output:

Hello World I am learning C++




No comments:

Post a Comment