Rewrite the above program in Visual Studio by creating a new project named HelloWorld and
run it to see its result.
Exercise 1.1
Write a C# program console application that should print the following output:
Rapid Application Development for
Summer III IT
Page1
Conditional Statements
The following examples of C# programs illustrate the different variants of the if condition.
Please rewrite all the examples on Visual Studio by creating new project for each and run them
to see their results.
Example 1: if statement
using System;
namespace CheckValueProgram
{
class CheckValue
{
static void Main(string[] args)
{
int number = 5;
if (number < 10)
{
Console.WriteLine("The number is less than 10");
}
}
}
}
Page2
number is 1");
number is 2");
number is 3");
number is 4");
Page3
Page4