#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i;
char s[500];
clrscr();
printf("\nEnter the number of items: \n");
scanf("\n%d",&i);
printf("Enter the list ",s);
for(i=1;i<=10;i++)
{
printf("%d. ",i,s);
scanf("%s",&s);
}
getch();
}
So the above program explains about listing using numbers.
No comments:
Post a Comment