LoginSignup
HentekoP
@HentekoP (Yoshi N)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

C言語のwhile文

Q&A

解決したいこと

C言語でwhile文を使って543210っていう表示をしたい

自分で試したこと

ここに問題・エラーに対して試したことを記載してください。
調べてもいい情報が出なくてわからなかった

0

3Answer

そうですね。

int i = 5;

while ( i >= 0 ) {
  printf("%d", i);
  i--;
}

これでOKと思います。

0

Your answer might help someone💌