Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- #include <time.h>
- #include <windows.h>
- int tablica(float x, float y)
- {
- char tab[40][80];
- int i,j;
- for(i=1;i<=20;i++)
- {
- for(j=1;j<=20;j++)
- {
- if(x==i && y==j)
- tab[i][j]='*';
- else
- {
- tab[i][j]=' ';
- printf("%c",tab[i][j]);
- if(j==20)
- printf("\n");
- }
- }
- }
- }
- int main()
- {
- int i,j;
- for(i=1; i=20;i++)
- for(j=1; j<=20;j++)
- {
- tablica(i,j);
- system( "cls" );
- Sleep(100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement