0

Can some one help me on c++

I was given the following question: 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. This is my code but I can seem to get the comas right and everywhere I read I get confused. #include <iostream> #include <iomanip> using namespace std; int main() { double acre = 43,560; double land = 389,767; double conv = land/acre; cout << land << " square feet equals " << conv << " acres.\n"; return 0; }

6th Feb 2021, 6:56 PM
Ronald Pareja
Ronald Pareja - avatar
1 Answer
+ 4
Remove the commas from acre & land variables
6th Feb 2021, 7:20 PM
♡Addy♡
♡Addy♡ - avatar