Fayzan
asked

Expert
Kelish Rai answered
Here's how you can print the result of (5 * (9 + 13) / 2) * 7 on the screen in C++, with the output ending on a new line:
#include <iostream>
using namespace std;
int main() {
cout << (5 * (9 + 13) / 2) * 7 << endl;
return 0;
}
If this isn't what you were looking for, let me know—I'm happy to help.
Also, if you're just getting started, I’d recommend going through the course step by step. That way, you'll build a strong foundation in C++ and understand concepts more easily.
Just a quick note: We focus on answering questions related to the page or course.
C++
This question was asked as part of the Learn C++ Basics course.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer