Re: What's on your CTRL+V?
Don't judge me
Don't judge me




//Main Function
int main() {
char doagain = 'y';
int num_rooms, num=1, ceiling;
printf("%s\n\n", "### PAINTING COST ESTIMATOR");
while(doagain == 'y') {
printf("%s", ">>> How many rooms are there in the house? ");
scanf("%d", &num_rooms);
printf("%s\n\n", "You want to paint rooms ???.");
while(num <= num_rooms) {
get_room_size(id, &width, &length);
quality = get_paint_quality();
//Prompts for ceiling to be done
printf("%s", "Enter if ceiling is to be painted (1-yes / 2-no): ");
scanf("%d", &ceiling);
while(ceiling < 1 || ceiling > 2) {
printf("%s\n\n", "###Error! Enter 1 to paint the ceiling, 2 for no");
printf("%s", "Enter if ceiling is to be painted (1-yes / 2-no): ");
scanf("%d", &ceiling);
}
update_largest_smallest_areas(id, (2 * length * 8) + (2 * width * 8),
&largest_area, &largest_id;
//Prompt if another room is to be done
id++;
while (room < 1
}
}
}
Comment