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 _3_Equal_Numbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- var a = double.Parse(Console.ReadLine());
- var b = double.Parse(Console.ReadLine());
- var c = double.Parse(Console.ReadLine());
- if (a == b && b == c)
- {
- Console.WriteLine("yes");
- }
- else
- {
- Console.WriteLine("no");
- }
- }
- }
- }
- /*
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _3_Equal_Numbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- var a = double.Parse(Console.ReadLine());
- var b = double.Parse(Console.ReadLine());
- var c = double.Parse(Console.ReadLine());
- if (a == b)
- {
- if (b == c)
- {
- if (c == a)
- {
- if (b == a)
- {
- if (c == b)
- {
- if (a == c)
- Console.WriteLine("yes");
- }
- }
- }
- }
- }
- else {
- Console.WriteLine("no");
- }
- }
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment