Identify the c++ code error. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 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