Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how to display N as number of students =3, student1=89;student 2 =95;student=76 in row and column.

0 votes
asked Nov 5, 2018 by Gerald Salomon (120 points)

1 Answer

0 votes
answered Nov 8, 2018 by Marshall (390 points)
//how to display N as number of students =3, student1=89;student 2 =95;student=76 in row and column.

#include <iostream>

int main()
{
    int n = 3;
    
    std::cout<<"Number of students = "<<n<<std::endl;
    std::cout<<"Student 1 = 89"<<std::endl;
    std::cout<<"Student 2 = 95"<<std::endl;
    std::cout<<"student 3 = 76"<<std::endl;
    
    return 0;
}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...