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;
- using System.Threading.Tasks;
- namespace ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- //Console.WriteLine("Zadej hrubý plat v korunách:");
- //double hplat = double.Parse(Console.ReadLine());
- //Console.WriteLine("Zadej dan v procentech:");
- //double dan = double.Parse(Console.ReadLine());
- //Console.WriteLine("čistý plat je {0:c2}",hplat*(1-dan/100));
- //Console.WriteLine("Zadej číslo od z intervalu : <0;999>");
- //int cislo = int.Parse(Console.ReadLine());
- //int stovky = 0, desitky = 0, jednotky = 0;
- //stovky = cislo / 100;
- //desitky = (cislo %100)/10;
- //jednotky = (cislo % 10);
- //Console.WriteLine("Rozklad čísla: {0}*10^2 + {1}*10 + {2}*10^0",stovky,desitky,jednotky);
- //Console.WriteLine("Zadej slovo:");
- //string slovo = Console.ReadLine();
- //if (slovo == "ahoj")
- //{
- // Console.WriteLine("Chachachahchahchahch");
- //}
- // výpočet obsahu trojuhelnika
- //Console.WriteLine("Zadej stranu a:");
- //double a = double.Parse(Console.ReadLine());
- //Console.WriteLine("Zadej stranu b:");
- //double b = double.Parse(Console.ReadLine());
- //Console.WriteLine("Zadej stranu c:");
- //double c = double.Parse(Console.ReadLine());
- //double obvod,males,velkeS;
- //if (((a+b)>c)&&((b+c)>a)&&((c+a)>b))
- //{
- // obvod = a + b + c;
- // males = obvod / 2;
- // velkeS = Math.Sqrt(males*(males-a)*(males-b)*(males-c));
- // Console.WriteLine("Obsah trojuhelniku o stranach a={0}, b={1}, c={2}, je {3}",a,b,c,velkeS);
- //}
- //else
- //{
- // Console.WriteLine("Zadany trojuhelnik neexistuje.");
- //}
- //for (int i = 0; i <= 10; i++)
- //{
- // Console.WriteLine("{0}",i*5);
- //}
- //Console.Write("Zadej uzivatelske jmeno:");
- //string jmeno = Console.ReadLine();
- //Console.Write("Zadej heslo:");
- //string heslo = Console.ReadLine();
- //if ((jmeno == "Ondrej")&&(heslo == "kokos"))
- //{
- // Console.WriteLine("Vitejte v systému!");
- //}
- //else
- //{
- // Console.WriteLine("Jmeno nebo heslo je nesprávné!");
- //}
- //Console.WriteLine("Zadej počet kol kolik chceš hrát!");
- //int pocet = int.Parse(Console.ReadLine());
- //int nahCislo;
- //Random nahGen = new Random();
- //nahCislo = nahGen.Next(100);
- //string typ;
- //int pocitadlo = 0;
- //for (int i = 1; i <= pocet; i++)
- //{
- // nahCislo = nahGen.Next(100);
- // Console.WriteLine(nahCislo);
- // Console.WriteLine("Napiš 's' pro sude cislo, nebo 'l' pro liche cislo");
- // typ = Console.ReadLine();
- // if (((nahCislo % 2)==0)&&typ == "s")
- // {
- // Console.WriteLine("Uhodl jsi, nahodne cislo je sudé!");
- // pocitadlo++;
- // Console.WriteLine("uhodl jsi {0} z {1} pokusů, tvoje procentuání úspěšnost je: {2}",pocitadlo,i,100*pocitadlo/i);
- // }
- // else if (((nahCislo % 2) != 0) && typ == "l")
- // {
- // Console.WriteLine("Uhodl jsi, nahodne cislo je liché!");
- // pocitadlo++;
- // Console.WriteLine("uhodl jsi {0} z {1} pokusů, tvoje procentuání úspěšnost je: {2}", pocitadlo, i, 100 * pocitadlo / i);
- // }
- // else
- // {
- // Console.WriteLine("Neuhodl jsi");
- // Console.WriteLine("uhodl jsi {0} z {1} pokusů, tvoje procentuání úspěšnost je: {2}", pocitadlo, i, 100 * pocitadlo / i);
- // }
- //}
- //Console.WriteLine("Zadej délku spodního ramene:");
- //int delka = int.Parse(Console.ReadLine());
- //Console.WriteLine("Zadej znak:");
- //string znak = Console.ReadLine();
- //int radek = 0;
- //if (delka > 80 )
- //{
- // delka = 80;
- //}
- //for (int i = 0; i <=delka; i++)
- //{
- // Console.WriteLine();
- // for (radek= 0; i != radek; radek++)
- // {
- // Console.Write(znak);
- // }
- //}
- // Random nahGen = new Random();
- // int nahCislo = nahGen.Next(100);
- // Console.WriteLine("myslim si cislo od nuly do sta, hadej ktere to je");
- // int cislo = 0;
- // while (true)
- // {
- // cislo = int.Parse(Console.ReadLine());
- // if (cislo == nahCislo)
- // {
- // Console.WriteLine("uhodl jsi myslel jsem si: {0}",nahCislo);
- // break;
- // }
- // else if (cislo > nahCislo)
- //{
- // Console.WriteLine("myslim si cislo mensi nez ktere myslis ty!");
- //}
- // else
- //{
- // Console.WriteLine("myslim si cislo vetsi nez ty!");
- //}
- // }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment