Skip to content

Conversation

@AkaishiTakumi
Copy link
Contributor

No description provided.

forで10回出力するようにした
hello.cppに自分の名前を追加
二つの整数(a,b)を入力しa<bかa>=bを出力する
Copy link
Contributor

@yuma-harada yuma-harada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントしました!

Comment on lines 10 to 12
if (a < b)
cout << a;
cout << "<" << b << endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{}が不足しているので付けましょう

Suggested change
if (a < b)
cout << a;
cout << "<" << b << endl;
if (a < b) {
cout << a;
cout << "<" << b << endl;
}

elseに対応するifがない問題を{}を書き足して解決
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants