Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<fstream>
- using namespace std;
- int main()
- {
- ofstream zapis_plik ("Plik.txt");
- if (!zapis_plik.is_open())
- {
- cout << "brak dostepu do pliku" << endl;
- }
- for(int i=1; i<=10; i++)
- {
- for(int j=1; j<=10; j++)
- {
- zapis_plik <<i<<" * "<<j<<" = " <<i*j << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment