/* Check the number if is greater or less than 50
Programming in C#
*/
using System;
namespace Program {
class Number {
public static void Main() {
string num;
int num2;
num=Console.ReadLine();
num2=Convert.ToInt32(num);
if(num2 == 50)
{
Console.WriteLine ("The number is equal with 50, You entered: " + num2);
}
else if(num2 < 50)
{
Console.WriteLine ("The number is less than 50, You entered: " + num2);
}
else
{
Console.WriteLine ("The number is greater than 50, You entered: " + num2);
}
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: