Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

My first C program

Name: Anonymous 2018-12-18 19:01

#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
int main (void)
{
for(int k=0;k<5;k++)
{
for(int i=0;i<20;i++)
{
usleep(200000-k*50000);
system("clear");
printf("\n");printf("\n");
printf("8");for(int j=0;j<i;j++){printf("=");}printf("o");for(int j=i+1;j<20; j++){printf("=");}printf("D\n");
}
for(int i=0;i<20;i++)
{
usleep(200000-k*40000);
system("clear");
printf("\n");printf("\n");
printf("8");for(int j=i+1;j<20;j++){printf("=");}printf("o");for(int j=0;j<i;j++){printf("=");}printf("D\n");
}
}
usleep(200000);
printf("\n");
system("clear");
printf("8");for(int j=0;j<20;j++){printf("=");}printf("D- _ \n");
usleep(200000);
printf(" ");for(int j=0;j<20;j++){printf(" ");}printf(" _ _ _ \n");
usleep(200000);
printf(" ");for(int j=0;j<20;j++){printf(" ");}printf(" _ _ _ \n");
usleep(200000);
system("clear");
}
Edited on 18/12/2018 19:03.

Name: Anonymous 2018-12-18 20:58

What does it doi?]

Name: Anonymous 2018-12-18 21:03

I didn't run it but clearly it's some sort of text art being printed

also you could just replace the "clear" system calls with a lot of newlines

Name: Anonymous 2018-12-19 12:12

BENIS

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List