If the output should be 20 stars (
*
), you can do it in the this way:
#include <stdio.h>
#include <string.h>
#include <conio.h>
int main ()
{
char str[21]; strcpy (str,"*********************"); printf(str);
getch();
return 0;
}
C - i almost forgot it ;)