Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MainClass
- {
- public static void Main(string[] args)
- {
- int vFix, vAnnee;
- double vPrime, vBrute;
- vFix = 1300;
- vPrime = 1.05;
- Console.WriteLine("Saisir votre Ancienneter: ");
- vAnnee = (Convert.ToInt32(Console.ReadLine()));
- if (vAnnee > 3)
- {
- vBrute = vFix * vPrime;
- }
- else
- {
- vBrute = 1300;
- }
- Console.WriteLine(vFix);
- Console.WriteLine(vBrute);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement