Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Modify the above program, so it will print "Failed!" if the grade is lower than 3.00.
- using System;
- namespace _02._Passed_or_Failed
- {
- class PassedOrFailed
- {
- static void Main(string[] args)
- {
- double input = double.Parse(Console.ReadLine());
- if (input < 3.00)
- {
- Console.WriteLine("Failed!");
- }
- else if (input >= 3.00)
- {
- Console.WriteLine("Passed!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment