SHARE
TWEET

Untitled

a guest Oct 13th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Annuitaetentilgung
  4. {
  5.     class Program
  6.     {
  7.          static public  void Main(string[] args)
  8.         {
  9.             Console.WriteLine("Kreditbetrag eingeben");
  10.              double Kredit = Convert.ToDouble(Console.ReadLine());
  11.             Console.WriteLine("Zinssatz ohne Prozentzeichen eingeben");
  12.              double Zins = Convert.ToDouble(Console.ReadLine());
  13.             Console.WriteLine("Tilgungssatz ohne Prozentzeichen eingeben");
  14.              double Tilgung = Convert.ToDouble(Console.ReadLine());
  15.             Console.WriteLine("Kreditbetrag: " + Kredit);
  16.             double Annuitaet = Kredit / 100 * (Zins + Tilgung);
  17.             Console.WriteLine("Zinssatz: " + Zins + " %");
  18.             Console.WriteLine("Tilgung: " + Tilgung + " %");
  19.             Console.WriteLine("Annuitaet: " + Annuitaet);
  20.             Console.WriteLine("Nach 1 Jahr: " +"Restdarlehen:  " + Kreditbetragberechnen() )
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.              double Zinsberechnung(double Kredit, double Zins)
  28.             {
  29.  
  30.                 double newZinsen = (Kredit / 100 * Zins);
  31.                 return newZinsen;
  32.                
  33.                  
  34.             }
  35.                
  36.                
  37.                  
  38.                   double Kreditbetragberechnen(double Kredit, double Tilgung)
  39.                 {
  40.                      double newTilgung = Kredit / 100 * Tilgung;
  41.                      double newKredit = Kredit - newTilgung ;
  42.                 return newKredit;
  43.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top