Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #include <time.h>
  5. #include <windows.h>
  6.  
  7. int tablica()
  8. {
  9. char tab[40][80];
  10. int i,j,z;
  11.  
  12. for(i=1;i<=10;i++)
  13. {
  14. for(j=1;j<=40;j++)
  15. {
  16.  
  17.  
  18. if(x==i && y==j)
  19. printf("");
  20. else
  21. tab[i][j]='*';
  22. tab[i][j]=' ';
  23. printf("%c",tab[i][j]);
  24. if(j==40){
  25. printf("\n");
  26.  
  27. }
  28.  
  29.  
  30.  
  31. /* system( "cls" );*/
  32.  
  33. }
  34. }
  35. }
  36.  
  37. int main()
  38. {
  39. int i;
  40. for(i=0; i<100;i++)
  41. {
  42. tablica();
  43. system( "cls" );
  44. Sleep(10);
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement