Skip to content

Instantly share code, notes, and snippets.

@ardasevinc
Created October 8, 2018 08:44
Show Gist options
  • Save ardasevinc/aaa877857b00ca71d308d92bb1be1c3f to your computer and use it in GitHub Desktop.
Save ardasevinc/aaa877857b00ca71d308d92bb1be1c3f to your computer and use it in GitHub Desktop.
#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