1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-12-16 15:44:39 +00:00
202401-programming-assignments/【实践课外】0.熟悉编程环境/7-2 计算平均分.cpp

15 lines
258 B
C++

#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cout << "math = 87, eng = 72, comp = 93, average = " << (87 + 72 + 93) / 3 << endl;
return 0;
}