Question PRG-CPP-0051
MediumWhat is the output of this program?
#include <iostream>
using namespace std;
int main() {
int a = 7, b = 2;
cout << a / b << " " << (double)a / b << " " << a % b;
return 0;
}
- A.
3 3 1
- B.
3.5 3.5 1
- C.
Sign up free to see the answer and a step-by-step explanation.