Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Logical problem

Name: Anon 2012-03-28 18:28

I'm learning logical in my school and the teacher throw me this exercise, I think the answer is 7. So I'm here to ask a little help please.

---
class Classe2{
int a;
Classe2 b;
}

main (){
Classe2 a,b;
a = new Classe2();
b = new Classe2();
b.b = a;
a.b = new Classe2();
a.a = 1;
a.b.a = 2;
b.a = 3;
b.b.a = a.a + 3;
print (a.a + b.a);
}

Name: Anonymous 2012-03-28 19:54

>>6
Do it in SJIS please

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List