. . Click on the title for the solution . . This is the answer: : int num; ifstream outFile; outFile.open("numbers"); cin >> num; int a,sum=0; for(int i=0; i<num; i++) { outFile>> a; sum = sum+a; } cout << sum << endl; outFile.close();
. . Click on the title for the solution . . This is the answer: : cin>>callsReceived>>operatorsOnCall; if (operatorsOnCall>0) {cout<<callsReceived/operatorsOnCall;} else cout<<"INVALID";
Comments
Post a Comment