Class1: Find the Minimum & Maximum range of the datatypes using C# Program - MeraForum Community.No 1 Pakistani Forum Community

MeraForum Community.No 1 Pakistani Forum Community


MeraForum Community.No 1 Pakistani Forum Community » The World of Information » Computer and Information Technology » C# » Class1: Find the Minimum & Maximum range of the datatypes using C# Program
C# C# Sharp Lectures & Tutorials

Advertisement
 
Post New Thread  Reply
 
Thread Tools Display Modes
(#1)
Old
AYAZ's Avatar
AYAZ AYAZ is offline
AYAZ
 


Posts: 12,366
My Photos: (134)
Country:
Star Sign:
Thanks: 4,100
Thanked 3,993 Times in 2,294 Posts
Join Date: Aug 2008
Location: Karachi
Gender: Male
Awards Showcase
ramadan-award-2013/Participant Partcipant March designer award 
Total Awards: 2

pix320 Class1: Find the Minimum & Maximum range of the datatypes using C# Program - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   05-12-2014, 03:47 AM

PART NO. 1
  • Go to Start > All Programs > Microsoft Visual Studio > Microsoft Visual Studio 2010
  • Click File | New Project | C# or VB Tab |Console Application
  • From New Project Dialog Box select Console Application, set Location to File System and set appropriate location by clicking the Browse Button, set Language to your preferred programming Language.
  • Name the Project “Meraforum1
  • Open Solution Explorer, select code file
  • Write the code in Program.cs


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();
          }
 
 

 

Sponsored Links







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.


Reply With Quote Share on facebook
Sponsored Links
Post New Thread  Reply

Bookmarks

Tags
class1, datatypes, find, maximum, minimum, program, range

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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 09:25 AM
Range Rover Evoque SUV Launched in India (¯*♥¤»ƙɧՄՏɧՅԾԾ«¤♥*¯) Car & Bikes 3 05-27-2013 10:56 PM
New Neckline Range | Embroidered Collection by Dareecha pakeeza Embroidery Dresses 13 05-16-2013 08:45 PM
~What Is The Maximum Limit ~ ~Pr!nCe$s UrOoJ~ Jokes 16 03-25-2013 05:33 PM


All times are GMT +5. The time now is 06:54 AM.
Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

All the logos and copyrights are the property of their respective owners. All stuff found on this site is posted by members / users and displayed here as they are believed to be in the "public domain". If you are the rightful owner of any content posted here, and object to them being displayed, please contact us and it will be removed promptly.

Nav Item BG