onycro

A3 - Erste Stunde

Sep 7th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. IF 12/1
  2. A2
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8.  
  9. namespace ConsoleApplication1
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.  
  16.             string s = Console.ReadLine();
  17.             int x = Convert.ToInt32(Console.Readline());
  18.             if(x>100 && x<0) Console.WriteLine("Punktezahl falsch eingegeben");
  19.             if(x<101 && x>91) Console.WriteLine("Note 1, sehr gut");
  20.             if(x<92 && x>80) Console.WriteLine("Note 2, gut");  
  21.             if(x<81 && x>66) Console.WriteLine("Note 3, befriedigend");
  22.             if(x<67 && x>49) Console.WriteLine("Note 4, ausreichend");
  23.             if(x<50 && x>29) Console.WriteLine("Note 5, mangelhaft");
  24.             if(x<30 && x>-1) Console.WriteLine("Note 6, ungenügend");
  25.         }
  26.  
  27.        
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment