Mega Code Archive
Categories
/
C++ Tutorial
/
Data Types
Do calculation in cout
#include
using namespace std; int main() { int length; int width; length = 7; width = 5; cout << "The area is "; cout << length * width; return 0; } The area is 35"