fork download
  1. //OrinTill Qimid CSC1 Chapter 2, P. 83, #12
  2. //**************************************************************
  3. //*
  4. // * Calculating Land
  5. //* ____________________________________________________________
  6. //* This program to calculate the total acres in a land of a 389,767 squre feet
  7. //*
  8. //* INPUT: Acre
  9. //* INPUT: Land
  10. //
  11. //* OUTPU: total_Acre
  12. //* ____________________________________________________________
  13.  
  14. #include <iostream>
  15. using namespace std;
  16.  
  17. int main()
  18. {
  19. double Acre, Land, total_Acre;//creating 3 variables that carry the Acre value and the land value
  20. Acre = 43560;
  21. Land = 389767;
  22. total_Acre = Land / Acre; //By divding the 2 value we can get the total Acres in the land
  23. cout<<"There is "<<total_Acre<<" acres in the land of "<<Acre<<" squre feets";
  24.  
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty