Which statement increases the result by 15?
a. 15 += result;
b. 15 =+ result;
c. result =+ 15;
d. result += 15;
e. result = 15 +;
Correct Option : d. result += 15;
Ex:
using System;
namespace Exercise12
{
class Program
{
static void Main(string[] args)
{
int result=15;
result += 15;
Console.WriteLine(+result);
}
}
}
Output: 30