Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- ofstream plik("mnozenie.txt");
- if(plik.is_open())
- {
- for(int i=1; i<=10; i++)
- {
- for(int j=1; j<=10; j++)
- {
- plik << setw(3) << i*j << " ";
- }
- plik << endl;
- }
- }
- else
- {
- cout << "Zapis nieudany. Konczenie programu.";
- }
- plik.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement