All pastes #187957 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-10-01 17:25 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 0;
            while (true)
            {
                for (int j = 0; j < 20; j++)
                {
                    int soucet = (i + (4 * j)) + (i + (5 * j));
                    int soucin = i * (i + (9 * j));
                    if (soucet == 55 && soucin == 250)
                    {
                        Console.WriteLine("Testing: start " + i + ", step " + j + " .... soucet = " + soucet + ", soucin = " + soucin + " .... vysledek = TRUE");
                        Console.ReadLine();
                        return;
                    }
                    else
                    {
                        Console.WriteLine("Testing: start " + i + ", step " + j + " .... soucet = " + soucet + ", soucin = " + soucin + " .... vysledek = false");
                    }
                }
                i++;
            }
        }
    }
}