The output of this C# program will be:
```
class Test
{
static void Main()
{
int[] a = {99, 22, 11, 3, 11, 55, 44, 88, 2, -3};
int result = 0;
for (int i = 0; i < a.Length; ++i)
{
if (a[i] > 30)
{
result += a[i];
}
}
Console.WriteLine($"Result is: {result}");
}
}
```
a) Result is: 280
b) Result is: 154
c) Result is: 286
d) Result is: 332
c) Result is: 286
Computer Science & Information Technology
You might also like to view...
A data source can be an organized group of data in a Word table, an Excel worksheet, an Access database table or query, or an Outlook contact list
Indicate whether the statement is true or false
Computer Science & Information Technology
What type of program is available to delete and overwrite data on a computer?
A) File-wiping software B) File-deleting software C) File-overwriting software D) All of the above
Computer Science & Information Technology