Generation

generate functionSat, 12 Nov 2022

ascii animation of an analog clock

void clk() { for(int i = 1; i <= 3; i++) { std::cout<<"|"; if(i == 2) { std::cout<<"@"; } else { std::cout<<" "; } std::cout<<"|\n"; } std::cout<<"|"; for(int i = 1; i <= 3; i++) { if(i == 2) { std::cout<<"|"; } else { std::cout<<" "; } } std::cout<<"|"; std::cout<<"\n"; for(int i = 1; i <= 3; i++) { std::cout<<"|"; if(i == 2) { std::cout<<"@"; } else { std::cout<<" "; } std::cout<<"|

Questions about programming?Chat with your personal AI assistant