C# C# Sharp Lectures & Tutorials |
Advertisement |
|
Thread Tools | Display Modes |
(#1)
|
|
||||
Class1: Find the Minimum & Maximum range of the datatypes using C# Program -
>>
Show Printable Version
Email this Page
05-12-2014, 04:47 AM
PART NO. 1
Code:
staticvoid Main(string[] args) { Console.WriteLine("Unsigned Byte minimum:" + byte.MinValue); Console.WriteLine("Unsigned Byte maximum:" + byte.MaxValue); Console.WriteLine("Signed Byte minimum:" + sbyte.MinValue); Console.WriteLine("Signed Byte maximum:" + sbyte.MaxValue); Console.WriteLine("Signed Short minimum:" + short.MinValue); Console.WriteLine("Signed Short maximum:" + short.MaxValue); Console.WriteLine("Unsigned Short minimum:" + ushort.MinValue); Console.WriteLine("Unsigned Short maximum:" + ushort.MaxValue); Console.WriteLine("Signed Integer minimum:" + int.MinValue); Console.WriteLine("Signed Integer maximum:" + int.MaxValue); Console.WriteLine("Unsigned Integer minimum:" + uint.MinValue); Console.WriteLine("Unsigned Integer maximum:" + uint.MaxValue); Console.WriteLine("Signed Long minimum:" + long.MinValue); Console.WriteLine("Signed Long maximum:" + long.MaxValue); Console.WriteLine("Unsigned Long minimum:" + ulong.MinValue); Console.WriteLine("Unsigned Long maximum:" + ulong.MaxValue); Console.WriteLine("Decimal minimum:" + decimal.MinValue); Console.WriteLine("Decimal maximum:" + decimal.MaxValue); Console.WriteLine("Double minimum:" + double.MinValue); Console.WriteLine("Double maximum:" + double.MaxValue); Console.ReadLine(); }
ALLAH FARMATA HAI : AEY BANDEY JO HUA WO ACHA HUA . JO HORAHA HAI ACHA HO RAHA HAI. JO HOGA WO BHI ACHA HOGA. TERA KIYA GAIYA JO TU ROTA HAI TU KIA LAYA JO TU NE KHO DIYA. JO LIYA YAHIN (DUNYA) SEI LIYA JO DIYA YAHIN (DUNYA) PE DIYA JO AAJ TERA HAI PEHLAY KISI AUR KA THA AUR KAL KISI AUR KA HOGA. TABDEELI KAINAAT KA MAMOOL HAI BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI YANI NAIK AMAAL. |
Sponsored Links |
|
Bookmarks |
Tags |
class1, datatypes, find, maximum, minimum, program, range |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
All new Range Rover luxury SUV officially revealed | (‘“*JiĢäR*”’) | Car & Bikes | 9 | 09-04-2015 10:25 AM |
Range Rover Evoque SUV Launched in India | (¯*♥¤»ƙɧՄՏɧՅԾԾ«¤♥*¯) | Car & Bikes | 3 | 05-27-2013 11:56 PM |
New Neckline Range | Embroidered Collection by Dareecha | pakeeza | Embroidery Dresses | 13 | 05-16-2013 09:45 PM |
~What Is The Maximum Limit ~ | ~Pr!nCe$s UrOoJ~ | Jokes | 16 | 03-25-2013 06:33 PM |