Variables, Computations, and Input in C++
Lecture no. 3 from the course: Introduction to C++: Programming Concepts and Applications
Taught by Professor John Keyser | 34 min | Categories: The Great Courses Plus Online Professional Development Courses
Try out a program that calculates calories in different foods, demonstrating the essential elements of a program: input, variables, computations, and output. Learn to specify a variable’s type and value, and get advice on shortcuts for keeping your instructions clean. Also discover the origin of the name C++, which signals that the language is designed to do whatever C can do—and then some.