PRN211_-_SU_2024_-_RE_2505.webp
golden_swallow

PRN211_-_SU_2024_-_RE_2505.webp

Kizspy | Question: 17
(Choose 1 answer)
static void GetValue(int a,ref int b,out int c){c=0;
for (int i = a; i <=b; i++){
c += i;
}
}
static void Main(string[] args){
int a=1,b=4,c=2;
GetValue(a, ref b,out c);
Console.WriteLine($"a={a},b={b},c={c}");
}
Which one of the following is the output of the above code?
A. a=1,b=4,c=10
B. a=2,b=5,c=9
C. a=3,b=4,c=11
D. a=4,b=5,c=12

Thông tin

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

Share this media

Back
Bên trên Bottom