You can change one character in the above program to make it working. There are three such solutions existing. So have fun with the C syntax and more than one way to accomplish task.#include <stdio.h>
int main(int argc, char *argv[])
{
int i, n = 20;
for ( i = 0; i < n; i--)
printf("-");
return 0;
}
0 Comments:
Post a Comment