Assignments » Variable, Operator and Expression » Set1 » Solution 2

Write a program to display output using a single cout statement.


#include<iostream>
using namespace std;

int main()
{
	cout<<"subject " <<"\tmarks"<<"\nmathematic\t"
		<<90<<"\ncomputer\t"<<77<<"\nchemistry\t"<<69;

	
	return 0;
}

Subject            Marks
Mathematics     90 
Computer         77 
Chemistry         69