-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
26 lines (24 loc) · 771 Bytes
/
Program.cs
File metadata and controls
26 lines (24 loc) · 771 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double BS, YofS, NofL;
Console.WriteLine("Enter employee Basic Salary:");
BS = double.Parse(Console.ReadLine());
Console.WriteLine("Enter years of service:");
YofS = double.Parse(Console.ReadLine());
Console.WriteLine("Enter number of leaves:");
NofL = double.Parse(Console.ReadLine());
Employee emp1 = new Employee();
emp1.salary(BS, NofL, YofS);
Console.ReadLine();
}
}
}