using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void btnVypocitat_Click(object sender, EventArgs e)
        {
            int intZbytek;
            intZbytek = Int32.Parse(txtCenty.Text);
            lblDolary.Text = (intZbytek / 100).ToString();
            intZbytek = intZbytek % 100;
            lblCtvrtdolary.Text = (intZbytek / 25).ToString();
            intZbytek = intZbytek % 25;
            lblDesetniky.Text = (intZbytek / 10).ToString();
            intZbytek = intZbytek % 10;
            lblPetniky.Text = (intZbytek / 5).ToString();
            intZbytek = intZbytek % 5;
            lblCenty.Text = intZbytek.ToString();
        }
        private void btnSmazat_Click(object sender, EventArgs e)
        {
            txtCenty.Text = "";
            lblDolary.Text = "";
            lblCtvrtdolary.Text = "";
            lblDesetniky.Text = "";
            lblDesetniky.Text = "";
            lblPetniky.Text = "";
            lblCenty.Text = "";
        }


            

    }
}