Untitled

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <cmath> using namespace std; int main() { int a = 100, b = 21; int av = a/b; int bv = a%b; float cv = (float)a/b; cout << "the av is :" << av ; cout << "\tthe bv is :" << bv << endl; cout << "the cv is :" << cv << endl; float frac = fmod(37.4053,2.0);// 等于int的% cout << "frac = " << frac << endl; int score = 102; int levelUp = (score > 100); cout << levelUp << endl; cout << "enter a num:" << endl; int n; cin >> n; cout << "you input a num:" << n << endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines