为什么我错了,哪位大佬帮忙看看?

lyh098 仙辞 2023-12-16 8:48:22 5

#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; if (> 90 || == 90) cout << "a"; if (> 70 || == 70 < 90) cout << "b"; if (> 60 || == 60 < 70) cout << "c"; if (< 60) cout << "d"; }

{{ vote && vote.total.up }}

共 3 条回复

wchzh objection

#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a >= 和谐了) cout << "A"; else if (a >= 和谐了 && a < 和谐了) cout << "B"; else if (a >= 和谐了 && a < 和谐了) cout << "C"; else if (a < 和谐了) cout << "D"; } 就可以了 (╬▔皿▔)╯

wchzh objection

||是或

wchzh objection

abcd=ABCD 大写