Hirdetés

2024. május 1., szerda

Gyorskeresés

Útvonal

Fórumok  »  Logoszféra  »  C# Zefír

Hozzászólások

(#1) Zefír


Zefír
őstag

2010/szept/21.

class Program
{
static void Main(string[] args)
{
int x, db ;
Console.Write("Összeg");
x = int.Parse(Console.ReadLine());

db = x / 20;
Console.WriteLine("20 ezresek={0}", db);
x = x % 20;

db = x / 10;
Console.WriteLine("10 ezresek={0}", db);
x = x % 10;

db = x / 5;
Console.WriteLine("5 ezresek={0}", db);
x = x % 5;

db = x / 1;
Console.WriteLine("1 ezresek={0}", x);

Console.ReadLine();

[ Szerkesztve ]

Útvonal

Fórumok  »  Logoszféra  »  C# Zefír
Copyright © 2000-2024 PROHARDVER Informatikai Kft.