1、第二次上机作业 1. #include using namespace std ;int main ()int input ;coutinput ;if (input %2)cout#includeusing namespace std;int main()double a,b,c;double delta,x1,x2;int sign;coutabc;cout0) sign=1;else sign=0;delta=sqrt(fabs(delta);x1=-b/(2*a);x2=delta/(2*a);if(sign)cout0,输出两个不等的实根;若=0,输出两个相等实根;若using na
2、mespace std ;int main() int score,p;coutscore;p=score/10;if (p=9) coutusing namespace std ;int main() int score ,p;coutscore;p=score/10;switch(p)case9:case10:coutusing namespace std ;int main()couta;if(a%3=0)if (a%7=0) cout“37“endl;else cout“37“endl;else if(a%7=0)cout“37 “endl;else cout “37“endl;return 0;