#include <stdio.h>
void fun1(void)
{
int a=0,b=5,c=0;
int d[5];
for(a=0;a<b;a++)
{
printf("%d\n",d[a]);
}
}
int main()
{
printf("enter 5 numbers");
int a,b=5,c=0;
int d[5];
for(a=0;a<b;a++)
{
scanf("%d",&d[a]);
}
fun1();
return 0;
}
i just wanted to make the program read 5 numbers then read them. help me please
void fun1(void)
{
int a=0,b=5,c=0;
int d[5];
for(a=0;a<b;a++)
{
printf("%d\n",d[a]);
}
}
int main()
{
printf("enter 5 numbers");
int a,b=5,c=0;
int d[5];
for(a=0;a<b;a++)
{
scanf("%d",&d[a]);
}
fun1();
return 0;
}
i just wanted to make the program read 5 numbers then read them. help me please