Created
October 8, 2018 08:44
-
-
Save ardasevinc/aaa877857b00ca71d308d92bb1be1c3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
main() | |
{ | |
int i,m; | |
for (i=1;i<=25;i++){ | |
printf("*"); | |
if (i==5||i==10||i==15||i==20){ | |
printf("\n"); | |
} | |
} | |
printf("\nDo you like what you see?(y-n)"); | |
scanf("%c",&m); | |
if (m=='y'){ | |
while (1==1){ | |
for (i=1;i<=25;i++){ | |
printf("*"); | |
if (i==5||i==10||i==15||i==20){ | |
printf("\n"); | |
} | |
} | |
} | |
} | |
else{ | |
printf("\nGoodbye"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment