#include< iostream >
#include< fstream >
using namespace std;
int x;
int main(){
ofstream fout;
fout.open("number.txt");
cin >>x;
for (int i = 0; i < 15; i++){
fout << i<< " "<< x*i << endl;
}
fout.close();
}
PC >ドキュメント >Visual studio 2013 > Projects > Project1 >Project1
をwindowsのファイル上にnumber.txtという新しいテキストファイルができる
0 0
1 9
2 18
3 27
4 36
5 45
6 54
7 63
8 72
9 81
10 90
11 99
12 108
13 117
14 126