Advertisement
paramecium

c##

Oct 21st, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.99 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             //Console.WriteLine("Input your surname");
  14.             //string name = Console.ReadLine();
  15.             //Console.WriteLine("Input your name");
  16.             //string surname = Console.ReadLine();
  17.             //Console.WriteLine("Input your otchestvo");
  18.             //string otchestvo = Console.ReadLine();
  19.             //Console.WriteLine( surname + " " + name + " " + otchestvo);
  20.             double x , y;
  21.             string str1 = Console.ReadLine();
  22.             string str2 = Console.ReadLine();
  23.             Console.WriteLine((100/150).ToString("F4"));
  24.             if (double.TryParse(str1, out x) && double.TryParse(str2, out y))
  25.             {
  26.                 Console.WriteLine(x - (int)x + y - (int)y);
  27.          
  28.             }
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement