Advertisement
arthur393

Explosão Tchakabum

Mar 3rd, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.04 KB | None | 0 0
  1. /*
  2.  
  3.            ____       _______    __________   __     __   __    __   _______
  4.           /    \     |  ____  \ |___   ____| |  |   |  | |  |  |  | |  ____  \
  5.          /  /\  \    |  |  /  /     |  |     |  |___|  | |  |  |  | |  |  /  /
  6.         /  /  \  \   |  | /  /      |  |     |   ___   | |  |  |  | |  | /  /
  7.        /  /    \  \  |  | \  \      |  |     |  |   |  | |  |__|  | |  | \  \
  8.       /__/      \__\ |__|  \__\     |__|     |__|   |__|  \______/  |__|  \__\
  9.  
  10.  
  11.     Para maior alegria altere os valores
  12.     da constante "MAX" e da variável "velocidade".
  13.  
  14. */
  15.  
  16.  
  17. #include <stdio.h>
  18. #define MAX 10
  19. #define TRUE 1
  20.  
  21. int main(){
  22.     int x[MAX],i,z;
  23.     int velocidade=2;
  24.  
  25.     while(TRUE){
  26.         for(i=0;i<MAX;i++)
  27.             x[i]=velocidade;
  28.      
  29.         for(i=0;i<MAX;i++){
  30.             while(x[i]--){
  31.                 for(z=0;z<i;z++)
  32.                     printf(".");
  33.                 printf("\n");
  34.             }
  35.         }
  36.      
  37.         for(i=0;i<MAX;i++)
  38.             x[i]=velocidade;
  39.      
  40.         for(i=0;i<MAX;i++){
  41.             while(x[i]--){
  42.                 for(z=MAX-1;z>i;z--)
  43.                     printf(".");
  44.                 printf("\n");
  45.             }
  46.         }      
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement