Run ID:69307

提交时间:2024-03-31 14:48:42

#include<iostream> using namespace std; int main(){ int x,y,z; x=5.0; y=8.0; z=12.0; double s=(x+y+z)/3.0; printf ("%.3lf\n",s); cout << 39/x <<" "<< 39%x <<endl; cout << 39/y <<" "<< 39%y <<endl; cout << 39/z <<" "<< 39%z; return 0; }