I need main() to pass a string and int num to a function only once then the function must set up a loop that will print that string
num number of times - want to know if this code is right.
void james (int,char[]);
void main (void)
{
james(5,"hooman");
}
void james (int num, char name[])
{
int i;
for(i=1;i<=num;++i)
printf("%s\n",name);
}