Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. /* void main() {
  6.  
  7. int x,y;
  8.  
  9. for(x=1; x<=10; x++) {
  10.  
  11. for(y=1; y<11; y++) {
  12.  
  13. cout << x*y << "\t";
  14.  
  15. }
  16.  
  17. cout << endl;
  18.  
  19. }
  20.  
  21. } */
  22.  
  23.  
  24. /* void main() {
  25.  
  26. int x,y,z;
  27.  
  28. cout << "Do ilu chcesz tabliczkę mnożenia? \n";
  29. cin >> z;
  30.  
  31. for(x=1;x<=z;x++) {
  32.  
  33. for(y=1; y<11;y++) {
  34.  
  35. cout << x*y << "\t";
  36.  
  37. }
  38.  
  39. cout << endl;
  40.  
  41. }
  42.  
  43. } */
  44.  
  45.  
  46. /* void main() {
  47.  
  48. int x,y,z,i;
  49.  
  50.  
  51. cout << "Od ilu chcesz tabliczkę mnożenia? \n";
  52. cin >> i;
  53. cout << "Do ilu chcesz tabliczkę mnożenia? \n";
  54. cin >> z;
  55. cout << endl;
  56.  
  57. for(x=i;x<=z; x++) {
  58.  
  59. for(y=i; y<=z; y++) {
  60.  
  61. cout << x*y << "\t";
  62.  
  63. }
  64.  
  65. cout << endl;
  66.  
  67. }
  68.  
  69. } */
  70.  
  71.  
  72. /* void main() {
  73.  
  74. int a;
  75. char zmienna;
  76.  
  77. for ( a=1 ; a<=120 ; a++ ) {
  78.  
  79. zmienna=a;
  80.  
  81. cout << a << " = " << zmienna << endl;
  82.  
  83. }
  84.  
  85. } */
  86.  
  87.  
  88.  
  89. void main() {
  90.  
  91. int a,b;
  92.  
  93. a=0;
  94.  
  95. while ( a <= 9 ) {
  96.  
  97.  
  98. a++;
  99.  
  100. b=1;
  101.  
  102. while ( b <= 10 ) {
  103.  
  104.  
  105. cout << a*b << "\t";
  106. b++;
  107.  
  108. }
  109.  
  110. cout << endl;
  111.  
  112. }
  113.  
  114.  
  115.  
  116.  
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement