Skip to content

Instantly share code, notes, and snippets.

View NastySwipy's full-sized avatar

Nas NastySwipy

View GitHub Profile
@NastySwipy
NastySwipy / gist:14898e3b3f28c203de38c4e9b7ea4353
Created January 24, 2018 11:34
php - 02. Harvest Exam 17.07.2016
<?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";
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;