Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

ATM NZEC C#

$
0
0

using System; class t2 { public static void Main() { double x=double.Parse(Console.ReadLine()); double y=double.Parse(Console.ReadLine()); if (x%5==0) if (x>y) if (y-x<0.5) Console.WriteLine((y-x)-0.5); else Console.WriteLine(y); } } keeps doing runtime error NZEC this is in C# thanks in advance


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>