Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static int diamond(int size, int Tprice, int Dprice)
- {
- int payment;
- size *= 10;
- size = size % 7;
- payment = size * Dprice + Tprice.
- return payment;
- }
- static void Main(string[] args)
- {
- int priceT, priceD, size, TotalD;
- Console.Writeline("Enter the Tilyon's price:");
- priceT = int.parse(Console.Readline());
- Console.Writeline("Enter Diamond's price:");
- priceD = int.parse(Console.Readline());
- Console.Writeline("Enter the size of the Tilyon (CM!):");
- size = int.parse(Console.Readline());
- TotalD = diamond(size, priceT, priceD)
- Console.Writeline(payment);
- }
- }
- }
Add Comment
Please, Sign In to add comment