Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Money {
- static void Main() {
- Console.WriteLine("Введите количество фунтов");
- string pounds;
- pounds=Console.ReadLine();
- Console.WriteLine("Введите количество шиллингов");
- string sh;
- sh=Console.ReadLine();
- Console.WriteLine("Введите количество пенсов");
- string pens;
- pens=Console.ReadLine();
- double pens_before=(Convert.ToInt32(pounds))*240+(Convert.ToInt32(sh))*12+Convert.ToInt32(pens);
- double pens_after=pens_before/100;
- Console.WriteLine("Десятичных фунтов: £" + pens_after.ToString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement