At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.
Sagot :
#include
int main () {
printf("Program to calculate the square footage of the house.\n");
int total_rooms;
double length, width;
double total_square_footage = 0.0;
printf("Enter total number of rooms in the house:");
scanf("%d", &total_rooms);
for (int i = 0; i
printf("Enter the lenght and width of room %d: ", i+1);
scanf("%if %if", &lenght, &width);
total_square_footage += lenght*width;
}
printf("Total square footage of the house: %if\n", total_square_footage);
return 0;
}
Please mark it as brainliest answer:).
int main () {
printf("Program to calculate the square footage of the house.\n");
int total_rooms;
double length, width;
double total_square_footage = 0.0;
printf("Enter total number of rooms in the house:");
scanf("%d", &total_rooms);
for (int i = 0; i
printf("Enter the lenght and width of room %d: ", i+1);
scanf("%if %if", &lenght, &width);
total_square_footage += lenght*width;
}
printf("Total square footage of the house: %if\n", total_square_footage);
return 0;
}
Please mark it as brainliest answer:).
We hope our answers were useful. Return anytime for more information and answers to any other questions you have. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Thank you for visiting Westonci.ca. Stay informed by coming back for more detailed answers.