Using single cout statement to get the following output
Output :
Subject Marks
Mathematics 100
Mathematics 100
Computer 80
Chemistry 98
Program :
#include<iostream>
using namespace std;
int main()
{
cout<<"Subject\t\tMarks\nMathematics\t\t100\nComputer\t\t80\nChemistry\t\t98"<<endl;
return 0;
}
No comments:
Post a Comment