MuffinMonster

Class Task 37#

Dec 10th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8.     class Program
  9.     {
  10.         static int diamond(int size, int Tprice, int Dprice)
  11.         {
  12.             int payment;
  13.             size *= 10;
  14.             size = size % 7;
  15.             payment = size * Dprice + Tprice.
  16.             return payment;
  17.         }
  18.         static void Main(string[] args)
  19.         {
  20.             int priceT, priceD, size, TotalD;
  21.             Console.Writeline("Enter the Tilyon's price:");
  22.             priceT = int.parse(Console.Readline());
  23.             Console.Writeline("Enter Diamond's price:");
  24.             priceD = int.parse(Console.Readline());
  25.             Console.Writeline("Enter the size of the Tilyon (CM!):");
  26.             size = int.parse(Console.Readline());
  27.             TotalD = diamond(size, priceT, priceD)
  28.             Console.Writeline(payment);
  29.         }
  30.     }
  31. }
Add Comment
Please, Sign In to add comment