Write a complete app that calculates and displays the product of three integers.

What will be an ideal response?


```
// Product.cs
// Calculating the product of three integers.
using System;

class Product
{
static void Main()
{
int x; // stores first number to be entered by user
int y; // stores second number to be entered by user
int z; // stores third number to be entered by user
int result; // product of numbers
Console.Write("Enter first integer: "); // prompt for input
x = int.Parse(Console.ReadLine()); // read first integer
Console.Write("Enter second integer: "); // prompt for input
y = int.Parse(Console.ReadLine()); // read second integer

Console.Write("Enter third integer: "); // prompt for input
z = int.Parse(Console.ReadLine()); // read third integer

result = x * y * z; // calculate the product of the numbers
Console.WriteLine($"Product is {result}");
} // end Main
} // end class Product
```

Enter first integer: 10
Enter second integer: 20
Enter third integer: 30
Product is 6000

Computer Science & Information Technology

You might also like to view...

Relational databases can be thought of as ________.

a) rows b) columns c) tables of rows and columns d) three-dimensional arrays

Computer Science & Information Technology

Arduino boards are reasonably inexpensive

Indicate whether the statement is true or false

Computer Science & Information Technology

You must select at least ____ layers to distribute them.

a. two b. three c. four d. six

Computer Science & Information Technology

When you open the Accessibility task pane shown in the figure above, the report results are shown ____.

A. at the bottom of the Site View tab B. at the top of the Site View tab C. to the right of the Site View tab D. to the left of the Site View tab

Computer Science & Information Technology