Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- #include <unistd.h>
- int main()
- { unsigned char
- s='0',k=1,j=1,x='+';
- for (k=1; k<=5; k++)
- {
- for (j=1; j<=5; j++)
- {
- if ((k==1 || k==5) && j==3)
- printf("%2c", s);
- else if ((k==2 || k==4) && (j==2 || j==3 || j==4))
- printf("%2c", s);
- else if (k==3)
- printf("%2c", s);
- else
- printf("%2c", x);
- }
- printf("\n");
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement