Variables in Programming and Algebra Comments
Comments
-
I expected to have to answer something like sum == answer; You just have to enter the answer itself
-
@Geert, I clarified that looking for number.
-
Enter Integer or Decimal Answer: I expect int sum == answer
-
I love this site. Now every other book is looking like a reference sheet.
-
You say "In the following code, what number will sum equal?"
It would be better to say "In the following code, what number will sum become?"
Also, you should give an extra example of multi-line assignment of variables before testing student understandingint x = 1;
int y = 333;
int total = x+y \ total is a container containing the number 334
int x = 5; \ x is now assigned the value of the number 5
int total = x+y \ total is a container which has been changed to contain the number 338Perhaps using sum or total as variable names is not a good idea. Maybe int z = x + y
For beginners, operators can be easily confused with variables -
This is amazing thank you so much
-
Gandalf the fabulous likes this
-
Thanks to this website, I dont feel like a dumb as.. anymore!
-
so good, I like it so much!
-
Good site so far :)
-
I'm not able to answer.
-
It's easy. Forget the int x = 2 and go to x = 100 and add the y to the x.
-
immidiately = immediately
-
I have increased my programming knowledge by 500% in the last 10 minutes.
-
In the code why it is written
int x = 2;
int y = 5;
x = 100; .Can anyone tell me why data type int is not written befor x=100; -
As mentioned on the previous page, you need to declare a variable's type the first time, but afterwards you can use it without re-mentioning what type it is.
-
Yes, but i want to learn programming. And isnt this a bit to easy to really learn programming?
-
You can start off easy. There's lot's of challenging material later if you want it!
-
ok i want that challenging stuff :-)
-
When you're ready, check out Algorithms
-
we will, but we are not ready yet :-)
-
this is just like js and c
-
This was my hardest challenge yet...How does 100 + 5 = 105 if x=2???? Computers are DU|\/|@$$3$ !!!! If X(2)=100 And X(1)=2 and Y(5) then wouldn't x+x+y =107? the only place xxy ever made sense was in Klinefelter syndrome! :p
-
Thanks.
-
Got confused here since x = 100; wasn't given any data type.
-
Great Website! Thanks.
-
This website makes a lot of sense, because a lot of people are not employed or partially employed and can't afford the high monthly costs of other training programs. Also, the questions are simple
enough to build confidence rather than destroy confidence as many other training sites, (including free ones) do. Learneroo, you have my loyalty.
-
Am so great-full for the amazing challenges on this website
Matthew
Oct 17, 4:26 PMEasy I'm liking this website.