Currently trying how to use the For loop but I知 not having much luck. Just trying to print a name ten times but I reckon I知 doing something wrong? Your help would be much appreciate as i am getting very frustrated!
Code:
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
char name[25];
void input_name()
{
printf("please enter your name.");
scanf("s%",&name);
}
void process()
{
for (name=1; <10; name+1)
printf("Your name is %s/n",name);
}
int main()
{
input_name();
process();
getch();
return 1;
}