This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class ChangeBuro | |
{ | |
static void Main(string[] args) | |
{ | |
double money = double.Parse(Console.ReadLine()); | |
string currencyIn = Console.ReadLine(); | |
string currencyOut = Console.ReadLine(); | |
string currencyStr = currencyIn + currencyOut; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$vineyard = intval(readline()); | |
$grapеKilograms = readline(); | |
$neededWine = intval(readline()); | |
$numWorkers = intval(readline()); | |
$totalGrape = $vineyard * $grapеKilograms; | |
$wine = 40/100 * $totalGrape / 2.5; | |
$remainderWine = $neededWine - $wine; | |
if($wine >= $neededWine){ | |
echo "Good harvest this year! Total wine: ".floor($wine)." liters."."\n"; |