array

2
 C:\TC\BIN\ARRAY.CPP 21 February 2014 12:41 //program to store marks of student in an array #include<iostream.h> #include<conio.h> void main() { clrscr(); int size,a[100] ; cout<<"enter no of students ?" <<endl; cin>>size; for(int i=0;i<size;i++) { cout<<"enter marks of student " <<i+1<<endl; cin>>a[i]; } getch(); } output enter no of students  ? 3 enter marks of student 1 25 enter marks of student 2 27 enter marks of student 3 25 -1-

Upload: makkunda

Post on 07-Oct-2015

221 views

Category:

Documents


0 download

DESCRIPTION

Array

TRANSCRIPT

  • C:\TC\BIN\ARRAY.CPP 21 February 2014 12:41

    //program to store marks of student in an array

    #include#includevoid main(){clrscr();

    int size,a[100] ;

    cout