Once again, my code wont work lol
so ca anyone help me? I dont know whats werong but the compiler acts weird
Here's a screenshot of what the compiler says.Code:#include <iostream.h> #include <conio.h> int main() { char cont='c' int loop=0; for(loop=0;cont='c';loop++) { double length; double height; cout<<"This will calculate the area of a rectangle for you.\n"<<endl; cout<<"Enter the length of the rectangle: "<<endl; cin>>length; cout<<"Enter the height of the rectangle: "<<endl; cin>>height; cout<<"\n The area of the rectangle is: "<<(length*height)<<endl; cout<<"Press any key to exit"<<endl; } getch(); getch(); return 0; }
Id appreciate the help




Reply With Quote