NYanev

Task 1

Oct 8th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. sing System;
  2.  
  3. /* 1.Declare five variables choosing for each of them the most appropriate of the types byte, sbyte, short, ushort, int, uint, long, ulong to represent the following values: 52130, -115, 4825932, 97, -10000.*/
  4.  
  5.  
  6. class varibles
  7. {
  8.     static void Main()
  9.     {
  10.         ushort myMoney = 52130;
  11.         Console.WriteLine(myMoney);
  12.  
  13.         sbyte degree = -115;
  14.         Console.WriteLine(degree);
  15.  
  16.         uint housePrice = 4825932;
  17.         Console.WriteLine(housePrice);
  18.  
  19.         byte mobileTax = 97;
  20.         Console.WriteLine(mobileTax);
  21.  
  22.         short myBet = -10000;
  23.         Console.WriteLine(myBet);
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment