0
   

Dry Run

 
 
Reply Thu 13 Mar, 2008 12:23 pm
Given two variables x and y:
set x=0
for y=1 to 100
add y*y+y+1 to x
end for
print x

What is the final value that is printed ?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 0 • Views: 747 • Replies: 2
No top replies

 
raprap
 
  1  
Reply Thu 13 Mar, 2008 01:07 pm
I got 343500

Rap
0 Replies
 
Tufdevil
 
  1  
Reply Thu 13 Mar, 2008 05:33 pm
Yes, I'll go with that answer, too.
0 Replies
 
 

Related Topics

Alternative Einstein's riddle answer - Discussion by cedor
Urgent !!! Puzzle / Riddle...Plz helpp - Question by zuzusheryl
Bottle - Question by Megha
"The World's Hardest Riddle" - Discussion by maxlovesmarie
Hard Riddle - Question by retsgned
Riddle Time - Question by Teddy Isaiah
riddle me this (easy) - Question by gree012
Riddle - Question by georgio7
Trick Question I think! - Question by sophocles
Answer my riddle - Question by DanDMan52
 
  1. Forums
  2. » Dry Run
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 04/25/2024 at 10:49:13