i need help for car park soultion

// carpark.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{ float Entrytime,ExitTime,Charge;
int Period;
cout<<"input Entrytime";
cin>>Entrytime;
cout<<"input ExitTime";
cin>>ExitTime;
Period=Entrytime-ExitTime;

if(Period=1);
{ Charge= 5.00;
cout<<"Your Charge is 5.00";

if(Period>1);
{ Charge=(Period-1)*2;
cout<<"Your Charge is"<<Charge;
("pause>NULL");
return 0;
}

i need help what is wrong with the problem
= is assignment, == is comparison (first 'if'). Your ifs have {s but no }s. What is ("pause>NULL"); supposed to be?
you need to work on comments and use code tags first.
Topic archived. No new replies allowed.