Lesson 5
Unlock this lesson
Create a free account, then buy the course to open every lesson.
What you will learn in this lesson
- Add, subtract, multiply and divide variables.
- Store the result of a calculation in a new variable.
- Why 7 / 2 gives 3 in C, and how to get 3.5.
- Change one data type into another with a type cast.
- Lock a value with const, so nobody changes it by mistake.
Everything in C Programming: BCA, MCA, BTech & O Level
- 37 step-by-step lessons
- 10 mini projects with solutions
- A final project for your portfolio
- Real commands and real output in every lesson
- Practice task with a solution in each lesson
- Progress saved to your account