-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
57 lines (45 loc) · 1.47 KB
/
Program.cs
File metadata and controls
57 lines (45 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Runtime.InteropServices;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter number 1");
int num1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter number 2");
int num2 = Convert.ToInt32(Console.ReadLine());
if (num2 > num1)
{
Console.WriteLine("Number 2 is greater than number 1");
}
else if (num1 > num2)
{
Console.WriteLine("Number 1 is greater than number 2");
}
else
{
Console.WriteLine("The numbers are equal");
}
// Console.WriteLine("Thankyou");
string name = "Sandra Makena";
string password = "stars";
string pin = "7654";
Console.WriteLine("Enter your name");
string name1 = Console.ReadLine();
Console.WriteLine("Enter your password");
string password1 = Console.ReadLine();
W string pin1 = Console.ReadLine();
if ((name == name1) && (password == password1) && (pin == pin) )
{
Console.WriteLine("Log in successfull. Welcome to Wild Springs");
}
else
{
Console.WriteLine("Log in failed Please try again");
}
Console.ReadKey();
}
}
}