VelizarAvramov

01. Practice Integers

Nov 15th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.87 KB | None | 0 0
  1. using System;
  2. using System.Numerics;
  3.  
  4. namespace Demo
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             sbyte first = sbyte.Parse(Console.ReadLine());
  11.             byte second = byte.Parse(Console.ReadLine());
  12.             short third = short.Parse(Console.ReadLine());
  13.             int fourth = int.Parse(Console.ReadLine());
  14.             uint fifth = uint.Parse(Console.ReadLine());
  15.             long sixt = long.Parse(Console.ReadLine());
  16.             BigInteger seventh = BigInteger.Parse(Console.ReadLine());
  17.  
  18.             Console.WriteLine($"{first}");
  19.             Console.WriteLine($"{second}");
  20.             Console.WriteLine($"{third}");
  21.             Console.WriteLine($"{fourth}");
  22.             Console.WriteLine($"{fifth}");
  23.             Console.WriteLine($"{sixt}");
  24.             Console.WriteLine($"{seventh}");
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment