Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Programming languages > C# function for sort
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 31st December 00:26
farzad
programming
Mombu User
 
Join Date: Dec 2008
Location: pecs,hungry
Posts: 0
farzad is on a distinguished road
Default C# function for sort



i need a program than can be ask user : name , age , id , and salary
then shows me the maximum salary and minimum salary

and then sort salary from maximum to minimum .

please complete these program for me

Code:
public string name;a public int age; public bool ID; private int salary; public void Staff() { Console.WriteLine("enter your name"); name = Console.ReadLine(); Console.WriteLine("enter your age : "); age = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("enter your ID:"); ID = Console.ReadLine(); Console.WriteLine("enter your salary:"); income = Convert.ToInt32(Console.ReadLine()); }
farzad is offline   Reply With Quote


 


Reply


Thread Tools
Display Modes




666