Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IF 12/1
- A2
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string s = Console.ReadLine();
- int x = Convert.ToInt32(Console.Readline());
- if(x>100 && x<0) Console.WriteLine("Punktezahl falsch eingegeben");
- if(x<101 && x>91) Console.WriteLine("Note 1, sehr gut");
- if(x<92 && x>80) Console.WriteLine("Note 2, gut");
- if(x<81 && x>66) Console.WriteLine("Note 3, befriedigend");
- if(x<67 && x>49) Console.WriteLine("Note 4, ausreichend");
- if(x<50 && x>29) Console.WriteLine("Note 5, mangelhaft");
- if(x<30 && x>-1) Console.WriteLine("Note 6, ungenügend");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment