Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

how to write a program to store name of 10 students and display them?

OpenStudy (rina.r):

Well, we're not going to do it for you. There's some example code and tutorials at http://www.cplusplus.com/doc/tutorial/ . It's for C++, but the code is simple enough that it shouldn't make a difference. Adapt that, and it should do exactly what you want. OR http://www.dailyfreecode.com/code/read-marks-10-students-4-subjects-805.aspx

OpenStudy (e.mccormick):

Or in any one of several languages: http://www.tutorialspoint.com/ Hard to say which one you need, since you did not list the language. In general you will need to look into arrays, loops, and print functions or methods.

OpenStudy (anonymous):

#include<iostream.h> void main() { char a[10][10]; for(int i=0;i<10;i++) { cout<<"ENTER NAME OF STUDENT "<<i+1<<"\n"; cin>>a[i]; } cout<<"THE NAME OF STUDENTS ARE\n"; for(int j=0;j<10;j++) { cout<<"STUDENT "<<j+1<<"\n"; cout<<a[j]<<"\n"; } }

OpenStudy (anonymous):

thanks guys !

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!