i want print a statement 5 times
without using any loop n should be in a line
i want print a statement 5 times
without using any loop n should be in a line
Like this, you mean ?
const char * s = "a statement";
printf("%s %s %s %s %s\n", s, s, s, s, s);
How about this?
printf("%s",s);printf("%s",s);printf("%s",s);printf("%s",s);printf("%s",s);
It's 5 print statements on one line, and an alternative to the others who used a single print statement!