65 842
Assignments Done
99,1%
Successfully Done
In October 2018

Answer to Question #20142 in C# for kumar saurav

Question #20142
write a program to print the print the product of the first 10 even number.
Expert's answer
using System;

namespace Product
{
class Program
{
& static void Main(string[] args)
& {
long product = 1;
for (int number = 1; number <= 10; number++)
product *= (number * 2);

Console.WriteLine(@"The product of the first 10 even numbers starting from 2 is {0}.", product);
Console.WriteLine("The product of the first 10 even numbers starting from 0 is 0.");
Console.ReadKey();
& }
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions