Shri Vaishnav vidhyapeeth Vishwavidyalaya,
Indore
Shri Vaishnav institute of information technology
EXPERIMENT – 1
Title: - Write a program to display Maths=90, Physics=74, Chemistry=76 using
a single cout statement.
Outcome: - After doing this program, the student will learn how to print text on
the screen using cout in C++.
Objective: - To print the marks of three subjects in one line using only one cout
statement.
Nomenclature: Cout
Used to print something on the screen
<<
Sends the text to the screen
\n
Moves the cursor to the next line
#include<iostream>
A file we add so that cout works
Int main()
The starting point of the programme
Assumption:
The marks are already fixed, no need to enter them.
The program is run on a normal C++ compiler.
Only one cout is used to print everything.
Dependencies
<iostream> — needed to use cout.
Any C++ compiler.
Shri Vaishnav vidhyapeeth Vishwavidyalaya,
Indore
Shri Vaishnav institute of information technology
Code: -
Output: -