Advertisement
Lukasz_Miskiewicz

operacje na plikach zad 3

May 24th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. #include <fstream>
  5. using namespace std;
  6. int a,b,c;
  7.  
  8. int main()
  9. {
  10.     ofstream zapis_pliku ("tabliczka.txt");
  11.     for(int a=1;a<11;a++)
  12.     {
  13.         for(int b=1;b<11;b++)
  14.         {
  15.             c=a*b;
  16.             zapis_pliku<<c<<" ";
  17.         }
  18.         zapis_pliku<< endl;
  19.     }
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement