how to write a program to store name of 10 students and display them?
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
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.
#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"; } }
thanks guys !
Join our real-time social learning platform and learn together with your friends!