Advertisement
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;
- using System.Threading.Tasks;
- namespace ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- //Console.WriteLine("Input your surname");
- //string name = Console.ReadLine();
- //Console.WriteLine("Input your name");
- //string surname = Console.ReadLine();
- //Console.WriteLine("Input your otchestvo");
- //string otchestvo = Console.ReadLine();
- //Console.WriteLine( surname + " " + name + " " + otchestvo);
- double x , y;
- string str1 = Console.ReadLine();
- string str2 = Console.ReadLine();
- Console.WriteLine((100/150).ToString("F4"));
- if (double.TryParse(str1, out x) && double.TryParse(str2, out y))
- {
- Console.WriteLine(x - (int)x + y - (int)y);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement