From the course: Complete Guide to C Programming Foundations

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Challenge: Get the order correct

Challenge: Get the order correct - C Tutorial

From the course: Complete Guide to C Programming Foundations

Challenge: Get the order correct

(upbeat music) - [Instructor] Your challenge is to get the order correct in a C language mathematical expression. You have been hired as a programmer at a museum that's raised enough money to afford its own programmer. Your task is to write a program that calculates the total number of artifacts in the museum. You can use code from the exercise file 03_06 Challenge 1 to get started. Here are the details. The museum has 12 rooms. Each room has 16 paintings and four sculptures. Write an equation that calculates the number of artifacts in the museum and output the result. And I can offer you a hint because I'm a nice guy: the proper result is 240, not 196. This challenge should take you 10 minutes to complete, probably less.

Contents