Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class VirtualColums
- {
- static void Main()
- {
- int a;
- do
- {
- Console.Write("int a (0...500) = ");
- a = int.Parse(Console.ReadLine());
- }
- while (a < 0 || a > 500);
- Console.Write("float b = ");
- float b = float.Parse(Console.ReadLine());
- Console.Write("float c = ");
- float c = float.Parse(Console.ReadLine());
- Console.WriteLine("|{0,-10:X}|{1,-10}|{2,10}|{3,-10:F3}|", a, Convert.ToString(a, 2), b, c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement