Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include <conio.h>
- #include <windows.h>
- #include <stdlib.h>
- int main()
- {
- char a[12][13];
- int i, j;
- printf(" SURPRISE !!\n"); system ("pause");
- HANDLE h = GetStdHandle ( STD_OUTPUT_HANDLE );
- WORD wOldColorAttrs;
- CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
- GetConsoleScreenBufferInfo(h, &csbiInfo);
- wOldColorAttrs = csbiInfo.wAttributes;
- SetConsoleTextAttribute ( h, FOREGROUND_RED | FOREGROUND_INTENSITY );
- for(i=0;i<5;i++)
- for(j=0;j<5;j++)
- {
- if(i+j>5-1) a[i][j]=3;
- else a[i][j]=' ';
- if(i+j==5-1) a[i][j]=3;
- }
- for(i=5;i<12;i++)
- for(j=0;j<6;j++)
- { if(i<j+5)a[i][j]=3;
- else a[i][j]=' ';
- if(i==j+5) a[i][j]=3;
- }
- a[0][5]=' ';
- for(j=1;j<5;j++) a[j][5]=3;
- a[0][6]=a[1][6]=' ';
- for(j=2;j<12;j++) a[j][6]=3;
- a[0][7]=' ';
- for(j=1;j<11;j++) a[j][7]=3;
- for(i=0;i<12;i++)
- for(j=0;j<6;j++) a[i][12-j]=a[i][j];
- a[4][4]='O'; a[4][5]='L'; a[4][6]='J'; a[4][7]='A';
- a[5][3]='R'; a[5][4]='A'; a[5][5]='D'; a[5][6]='O'; a[5][7]='V'; a[5][8]='I'; a[5][9]='C';
- for(i=0;i<12;i++)
- { printf("\n");
- for(j=0;j<13;j++) printf("%c",a[i][j]);
- } printf("\n");
- SetConsoleTextAttribute ( h, wOldColorAttrs);
- printf("\n");
- SetConsoleTextAttribute ( h, FOREGROUND_BLUE| FOREGROUND_INTENSITY );
- printf(" I sada kazi mi sta mislis :D hahahaha \n");
- SetConsoleTextAttribute ( h, wOldColorAttrs);
- SetConsoleTextAttribute ( h, FOREGROUND_RED| FOREGROUND_INTENSITY );
- printf("\n");printf("I kako ? ... Je li ti se svigao ?? :D \n");
- SetConsoleTextAttribute ( h, wOldColorAttrs);
- system ("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment