this is what i got
how do i go from here to compile because it isn't letting me
/*
* HomeWork 8.h
*
*
* Created by Ben Langdon on 3/6/08.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*
*/
#include <iostream>
using namespace std;
int main ( void )
{
int firstAge; //first age
int secAge; //second age
int ageSum; //sum of te ages
float avgAge; //average of ages
cout<<"\n\n\nBen Langdon\nLab1\n2-28-08\n\n";
//obtain2 ages from the user
cout<<"Enter first age:";
cin>>firstAge;
cout<<"Enter second age:";
cin>>secAge;
//Calculate the sum and average of the ages
ageSum = firstAge + secAge;
aveAge = ageSum / 2.0;
//Output tghe calculated results
cout<<"\nThe sum of the ages is "<<ageSum<<" and the average is "<<avgAge;
}
how do i go from here to compile because it isn't letting me
/*
* HomeWork 8.h
*
*
* Created by Ben Langdon on 3/6/08.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*
*/
#include <iostream>
using namespace std;
int main ( void )
{
int firstAge; //first age
int secAge; //second age
int ageSum; //sum of te ages
float avgAge; //average of ages
cout<<"\n\n\nBen Langdon\nLab1\n2-28-08\n\n";
//obtain2 ages from the user
cout<<"Enter first age:";
cin>>firstAge;
cout<<"Enter second age:";
cin>>secAge;
//Calculate the sum and average of the ages
ageSum = firstAge + secAge;
aveAge = ageSum / 2.0;
//Output tghe calculated results
cout<<"\nThe sum of the ages is "<<ageSum<<" and the average is "<<avgAge;
}