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

1. A simple C++ program  to display the following output using a single cout statement.
Math = 90, Physics = 77 , Chemistry = 69

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
    cout<<" Math = 90\n";
    cout<<" Physics = 77\n";
    cout<<" Chemistry = 69";
    getch();

}



No comments

Powered by Blogger.