0

Any one help me I don't understand variables

help me

21st Feb 2018, 6:53 AM
Adithya Kumar
Adithya Kumar - avatar
7 Answers
+ 3
You don't have to be skilled in math to program. You just have to understand some concepts in math. Like algebra, for example. If you can solve 2x=14 for x, then you can program. x is the variable. Its job is to store a value. If you assign 7 to x, the equation becomes a true statement, because 2 * 7 = 14. x is a variable. It can be any letter you choose, just as long as you're not already using it. Like y * y, if y is 4, then the answer would be 16, y * y --> 4 * 4 = 16.
21st Feb 2018, 7:36 AM
Fox
Fox - avatar
+ 1
We store values in variables. int number = 5; I created variable named number of type int and stored 5 in there.
21st Feb 2018, 7:01 AM
Sad
Sad - avatar
+ 1
thanks for helping randomcoder
21st Feb 2018, 7:03 AM
Adithya Kumar
Adithya Kumar - avatar
+ 1
Your welcome😉👍
21st Feb 2018, 7:03 AM
Sad
Sad - avatar
+ 1
You should know basic math for little math operations that you might need.
21st Feb 2018, 7:05 AM
Sad
Sad - avatar
+ 1
ohh thanks
21st Feb 2018, 7:06 AM
Adithya Kumar
Adithya Kumar - avatar
0
is that need to know mathematics to learn C++
21st Feb 2018, 7:04 AM
Adithya Kumar
Adithya Kumar - avatar