Question: In Visual Studios C#: class Program { static void Main(string[] args) { // declare two int variables and give them a value of your choice

In Visual Studios C#:

class Program { static void Main(string[] args) {

// declare two int variables and give them a value of your choice

// declare two double variables and give them a value of your choice

// see methods to create below

// call your greeting method

// call the product/square method, send it your int variables declared above

// print out the returned value... use a solution of your choice (store return value to a new var, put the method call in a write statement)

// call the sum method, send it your double variables declared above

// print out the returned value... use a solution of your choice (store return value to a new var, put the method call in a write statement)

}

// notice you are inside the class code block, but outside of the main method // declare your static methods here

// create a static void method that displays a greeting to your program

// create a static in method that reutns the product of the two numbers squared

// create a static double method that returns the value of sum of both doubles

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!