VelizarAvramov

01. Passed

Jul 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. Write a program, which takes as an input a grade and prints “Passed!if the grade is equal or more than 3.00.
  2. using System;
  3.  
  4. namespace _01._Passed
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             double input = double.Parse(Console.ReadLine());
  11.             if (input >= 3.00)
  12.             {
  13.                 Console.WriteLine("Passed!");
  14.             }
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment