Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. int x,y;
  6. int ilosc;
  7.  
  8. printf("Podaj wielkosc tabliczki mnozenia: \n");
  9. scanf("%i",&ilosc);
  10.  
  11. printf("%5c", ' ');
  12.  
  13. for(x=1;x<=ilosc;x++)
  14. printf("%5d", x);
  15.  
  16. for(x=1;x<=ilosc;x++)
  17. {
  18. printf("\n%5d", x);
  19. for (y=1;y<=ilosc;y++)
  20. {
  21. printf("%5d", y*x);
  22. }
  23. }
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement