0
What is the output of the following C++ program?
#include <iostream>
using namespace std;
int main() {
cout << 7 / 2 << " " << 7 % 2 << " " << 7 / 2.0;
return 0;
}- A3 1 3.5
- B3.5 1 3.5
- C3 1 3
- D3 0 3.5
Correct answer: A
What is the output of the following C++ program?
#include <iostream>
using namespace std;
int main() {
cout << 7 / 2 << " " << 7 % 2 << " " << 7 / 2.0;
return 0;
}