Monday 14 September 2015

WAP to input the marks of 10 students in an array of integers and display the marks.

#include<stdio.h>
#include<conio.h>
void main()
{ int a[10],b;
clrscr();
printf("enter 10 value");
for(b=0;b<=9;b++)
scanf("%d",&a[b]);
for(b=0;b<=9;b++)
{
printf("\n%d",a[b]);
}
getch();
}

No comments:

Post a Comment