Land Calculation One acre of land is equivalent to 43,560 square feet. Write a program that calculates the number of acres in a tract of land with 389,767 square feet.
LANGUAGE: C++
CHALLENGE: Land Calculation
One acre of land is equivalent to 43,560 square feet. Write a program that calculates the number of acres in a tract of land with 389,767 square feet.
SOLUTION:
#include <iostream> using namespace std; int main() { double acre = 43560; double land = 389767; double conversion = land / acre; cout << land << " sq ft = " << conversion << " acres \n\n"; system("pause"); return 0; }
Posted in C++, Learn To Code