Skip to content

Instantly share code, notes, and snippets.

View charlie-chaing's full-sized avatar

charlie-chaing

  • Joined Oct 2, 2025
View GitHub Profile
#include <iostream>
using namespace std;
int main() {
int score = 101;
if (score < 0 || score > 100) {
cout << "缺考";
}else if (score >= 0 && score >= 60 ) {
cout << "及格!";
} else if (score >= 0 && score < 60) {
#include <iostream>
using namespace std;
int main() {
int a = 1;
if (a = 1) {
cout << "*";
} else if (a = 2) {
cout << "**" << endl <<"**";
} else if (a = 3) {
#include <iostream>
using namespace std;
int main() {
int score=80;
if (score >= 80) {
cout << "高分!" << endl;
} else if (score >= 60) {
cout << "及格!" << endl;