PRN211_-_SP_2024_-_RE_1754.webp
L

PRN211_-_SP_2024_-_RE_1754.webp

✔D
(Choose 1 answer)
class A {
(int x, int y) values = (0, 0);
public A(int x, int y) => values = (x. y):
public void Print(){var r = Sum():
Console.WriteLine($"{r}"):
int Sum(){
var s = 0;
for (int i = values.x; i < values.y; i++){s += (i&1)==1?i:0;
}
return s;
}
}
} class Program{
static void Main(string[] args){A obj = new A(2.8):
obj.Print():
}
} The output will be:
A. 0
B. 10
C. 12
D. 15


Q: 35

Thông tin

Category
PRN211
Thêm bởi
Luffy_san
Ngày thêm
Lượt xem
724
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN211_-_SP_2024_-_RE_1754.webp
File size
172.9 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom