• Post Reply Bookmark Topic Watch Topic
  • New Topic

illegal start of expression

 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


"illegal start of expression" What causes this error.I can not figure out.I changed even the the combination of relational operators <== and >==
I want a integer returned between 1 and 6
Varuna
 
Leroy J Brown
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For starters the syntax for your relational operators is wrong. Try using

and


Should patch you up quick.
 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tristan!
I was stressed out I could even figure out that


Varuna
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!