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