ARRAYS

 ARRAYS


INPUT

#include <stdio.h>

int main()
{
    int marks[6];
    marks[1]=234;
    marks[2]=23;
    marks[3]=24;
    marks[4]=34;
    marks[5]=2;
    for (int i = 1i < 6i++)
    {
        printf("The marks of student %d are %d\n",i,marks[i]);
    }
    
     return 0;
}

OUTPUT

The marks of student 1 are 234 The marks of student 2 are 23 The marks of student 3 are 24 The marks of student 4 are 34
The marks of student 5 are 2






 

Comments