C++ Programming Blog

 
 
 

Image

/*write a program to display the following output using a
   single cout statement.
   Maths     = 90
   physics   = 77
   chemistry = 69      */

#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
cout<<\"OUTPUT PROGRAM\\n\\n\\n\";
cout<<\"\\tMaths     = 90\\n\"<<\"\\tPhysics   = 77\\n\"<<\"\\tChemistry = 69\\n\";
getch();
}

 
 
Didn't find what you were looking for? Find more on Program using cout statement to display in single line