Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace prace_17
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(Int32.MaxValue+" "+ uint.MaxValue+" "+ short.MaxValue+" "+ ushort.MaxValue+" "+ long.MaxValue+" "+ulong.MaxValue+" "+byte.MaxValue+" "+sbyte.MaxValue+" "+double.MaxValue+" "+ decimal.MaxValue);
- Console.WriteLine(Int32.MinValue + " " + uint.MinValue + " " + short.MinValue + " " + ushort.MinValue + " " + long.MinValue + " " + ulong.MinValue + " " + byte.MinValue + " " + sbyte.MinValue + " " + double.MinValue + " " + decimal.MinValue);
- int inta = Int32.MaxValue;
- short shorta;
- shorta = (short)inta;
- long longa = long.MaxValue;
- byte bytea = byte.MaxValue;
- longa = bytea;
- int a = 3;
- switch (a)
- {
- case 0: a = 1; break;
- case 1: a = 2; break;
- case 2: a = 3; break;
- default: a = 10; break;
- }
- Console.WriteLine(a);
- a = (a < 15) ? 5 : a;
- Console.WriteLine(a);
- for (int i = 0; i < 10; i++)
- {
- Console.Write(i + " ");
- }
- Console.WriteLine();
- for (int i = 0; i < 10; i++)
- {
- if (i == 2)
- break;
- Console.Write(i + " ");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment