|
2011-07-09
, 07:46
|
Posts: 69 |
Thanked: 55 times |
Joined on Nov 2009
|
#2
|
|
2011-07-09
, 11:41
|
Posts: 35 |
Thanked: 22 times |
Joined on Jul 2010
@ Moscow
|
#3
|
x=0 # Here you define that x is equal to 0 y=5 # Same with y, just value is different x=x+1 # You assign x result of x+1 (which is 0+1), x=1 y=y+1 # Same with y (5+1), y will be 6 y=x+y # Assign y result of x+y (1+6), y=7 print y # Guess what that does :)
7
var x=0 var y=5 x=x+1 ...
|
2011-07-09
, 18:24
|
Posts: 562 |
Thanked: 123 times |
Joined on Nov 2009
@ Daly City
|
#4
|
here's the problem..
The variable X starts with the value 0.
The variable Y starts with the value 5.
Add 1 to X.
Add 1 to Y.
Add X and Y, and store the result in Y.
Display the value in Y on the screen.
now I need to write it in psuedocode and also the output.. anyone willing to explain it and give me some examples..
N900(40GB) PR1.3|NITDroid|Power40|MeeGo @1GHz
Nokia N9(64GB)Black|PR1.1
ASUS G73JH| i7-720QM | 1.6-2.8GHz | WIN 7 Pro | ATI 5870 1GB DDR5 | 8GB RAM DDR3 1333MHz | 80GB X-25 G2 SSD+500 GB HDD | 1920x1080 | RAZER MAMBA | ALIENWARE BACKPACK(WTF?)| Intel 6200 WIFI|
Last edited by chase15; 2011-07-09 at 01:51.