English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

In the following lines of C# code what are the values of all variables at the end (after all 7 lines of code are executed)?

int a, b, c, d ;
d = - 6 ;
a = 3* 4+ 2 ;
b = 3 + 4* 5;
c = (3+4) * 5 ;
c = a + b ;
d = - d ;

2007-03-14 17:40:55 · 1 answers · asked by TheOne 1 in Computers & Internet Programming & Design

1 answers

int a, b, c, d ;
d = - 6 ; -6
a = 3* 4+ 2 ; a=14
b = 3 + 4* 5; b=23
c = (3+4) * 5 ; 35
c = a + b ; c=37
d = - d ; d=6

2007-03-15 05:27:36 · answer #1 · answered by ROY L 6 · 0 0

fedest.com, questions and answers