click on this link......

LinkGrand.com

Tuesday 22 January 2013

Two dimensional array to store roll number and marks

#include<stdio.h>
#include<conio.h>
void main()
{
    int stud[30][20],i,j;
    clrscr();
    printf("\nEnter the rollno and marks:");
    for(i=0;i<3;i++)
    {
        scanf("%d%d",&stud[i][0],&stud[i][1]);

    }
    printf("\nRoll no \t marks");
    for(i=0;i<3;i++)
    {
        printf("\n%d\t%d\n",stud[i][0],stud[i][1]);
    }
    getch();
}

Two dimensional array to store roll number and marks
Two dimensional array to store roll number and marks

Two dimensional array to store roll number and marks


1 comment: