mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-03 17:26:21 +00:00
15 lines
258 B
C++
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;
|
||
|
}
|