Hmm Im trying to make a program that calculates the area of a rectangle and after you get the first rectangle, you can type in C to continue or anything else to stop. It doesnt work though.
Code:
#include <iostream.h>
#include <conio.h>

int main()
{
char cont=c
double length;

double height;
for(i=0;cont=c;i++)
{
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<<"Type in C to continue or anything else to close the program."<<endl;
cin>>cont;
}
getch();
getch();
return 0;

}