Advertisement
Xkein

Sital Mathéo

Oct 10th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. using System;
  2.  
  3. class MainClass
  4.  {
  5.  
  6.   public static void Main(string[] args)
  7.          {
  8.                 int vFix, vAnnee;
  9.                 double vPrime, vBrute;
  10.  
  11.                 vFix = 1300;
  12.                 vPrime = 1.05;
  13.  
  14.                 Console.WriteLine("Saisir votre Ancienneter: ");
  15.                 vAnnee = (Convert.ToInt32(Console.ReadLine()));
  16.  
  17.                 if (vAnnee > 3)
  18.                 {
  19.                     vBrute = vFix * vPrime;
  20.  
  21.                 }
  22.                 else
  23.                 {
  24.                     vBrute = 1300;
  25.  
  26.                 }
  27.                 Console.WriteLine(vFix);
  28.                 Console.WriteLine(vBrute);
  29.             }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement