Advertisement
bacco

Passed or Failed

May 18th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _02_Passed_or_Failed
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             var grade = double.Parse(Console.ReadLine());
  10.  
  11.             if (grade >= 3)
  12.             {
  13.                 Console.WriteLine("Passed!");
  14.             }
  15.             else
  16.             {
  17.                 Console.WriteLine("Failed!");
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement