4ever Programming Solutions
All about programming and blogging.
Friday, April 11, 2014
Simple Array to show 1-5 after getting numbers from user
#include<conio.h>
#include<stdio.h>
void main(void)
{
int num[5],a;
clrscr();
for(a=0;a<=4;a++)
{
printf("\n Enter a number=");
scanf("%d",&num[a]);
}
for(a=0;a<=4;a++)
{
printf("\n %d",num[a]);
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment