From the course: Complete Guide to C Programming Foundations

Unlock the full course today

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

Challenge: Do some math

Challenge: Do some math

(bright music) - [Instructor] In this challenge, you're going to do some math, or more precisely, the computer is going to do some math. You're going to code the equations. Use the source code from Exercise File 03_02-challeng1.c to help you get started. Declare three variables, a, b, and c. Add assignments for these three variables, a, b, and c, as shown by a comment in the code. Assign to variable a the value 15. Assign to variable b the value of variable a divided by 2. And finally, assign to variable c the value of variable b multiplied by 4. This challenge should take you under 10 minutes to complete.

Contents