Skip to content

Commit

Permalink
[fix] cinで受け取るとき、初期値に意味がないことを明記 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZOI-dayo authored May 2, 2024
1 parent a4f3c5b commit 0dc39f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/text/chapter-2/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cin 命令を用いると、コンソールから入力する事ができる。
using namespace std;
int main() {
int x = 10;
int x = 10; // 下の行で上書きされるので、好きな数字を入れておけば良い
cin >> x;
cout << x*10 << endl;
Expand Down

0 comments on commit 0dc39f4

Please sign in to comment.