PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp
P

PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp

Inle Choices
(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: 13

Thông tin

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

Image metadata

Filename
PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp
File size
175.6 KB
Dimensions
1920px x 930px

Share this media

Back
Bên trên Bottom