halexandru11

ÎMPODOBEȘTE MAMĂ BRADU ;)))

Nov 24th, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1.                    #include\
  2.                   <windows.h>
  3.                #include<stdio.h>
  4.              int main(){char x='*',
  5.            y='+';int n=7;while(true){
  6.         x^=1,y^=1;for (int r=0;r<n;++r){
  7.                  for(int i=0;
  8.                 i<n+2-r; ++i){
  9.             printf(" ");}printf("%c",
  10.          y);for(int i = 0; i < r; ++i){
  11.        printf("%c%c",x,y);}puts("");}for(
  12.     int r=0;r<=n;++r){for(int i=0;i<n-r;++i){
  13.               printf(" ");}printf(
  14.             "%c%c%c%c%c",y,x,y,x,y);
  15.           for(int i=0;i<r;++i){printf(
  16.       "%c%c",x,y);}puts("");} for(int r=0;
  17.    r*r<2*n;++r){for(int i=0;i<n+2;++i){printf
  18.  (" ");}printf("%c\n",x);}{{Sleep(800);{{system(
  19.                      "cls");
  20.                        }}}
  21.                        }}}
  22.  
Add Comment
Please, Sign In to add comment