0

Identify the c++ code error.

#include <iostream> using namespace std; int main() { double length = 5.6; double height = 3.1; double area = length * height; cout >> area; }

28th Dec 2022, 1:41 PM
RandomTuber
RandomTuber - avatar
1 ответ
+ 5
You should be inserting <area> into the output stream using the insertion operator << But here you use extraction operator >> instead ...
28th Dec 2022, 2:05 PM
Ipang