voprosi i resheniya po programmirovaniu na C#

: 2412 (16 2012)
:
:
0
: 0
voprosi i resheniya po programmirovaniu na C#
| , ......
(Pavel) (Masherov) # 16 2012 02:14 0

vopros : vvesti 3 4islovie vele4ini , vivesti na ekran samoe bol'shoe iz nih?

moget kto nibyd' pomo4'? (dt)

Irina K # 16 2012 02:14 0

using System;
using System.Collections.Generic;
using System.Text;

namespace targil2_3
{class Program
{static void Main(string[] args)
{int minNumber, midNumber, maxNumber, flag;

Console.WriteLine("Please enter three numbers");
minNumber = int.Parse(Console.ReadLine());
midNumber = int.Parse(Console.ReadLine());
maxNumber = int.Parse(Console.ReadLine());

if (maxNumber < midNumber)
{flag = maxNumber;
maxNumber = minNumber;
minNumber = flag;
}

if (minNumber > midNumber)
{ flag = minNumber;
minNumber = midNumber;
midNumber = flag;
}Console.WriteLine(" The maximum number: {0}, medium number:{1}, minimum number :{2}", maxNumber, midNumber, minNumber);
Console.ReadLine();

(Pavel) (Masherov) # 16 2012 08:27 0

Zdravstyite Irina . spasibo za pomosh' (Y)

proveril programmy ona rabotaet tol'ko 4asti4no eli vvodit' naprimer vetoi posledovatel'nosti : 3,6,9 bydet max =9 med =6 min=3 esli 9,6,3 bydet max =9 med =6 min=3 esli 6,9,3 poly4aetsya max=6,med=9, min=3 :-O pitaus' ponyat' 4to tam proishodit golova idet (md)

# 23 2012 18:39 0

using System;
using System.Collections.Generic;
using System.Text;

namespace Max_from_3_numbs
{
class Program
{
static void Main(string[] args)
{
{
int number1, number2,number3, maxNumber;

Console.WriteLine("Please enter three numbers");
number1 = int.Parse(Console.ReadLine());
number2 = int.Parse(Console.ReadLine());
number3 = int.Parse(Console.ReadLine());

if (number1 < number2)
maxNumber = number2;
else
maxNumber = number1;

if (maxNumber < number3)
maxNumber = number3;

Console.WriteLine(" The maximum number: {0}", maxNumber);
Console.ReadLine();
}
}

# 25 2012 05:01 0

2 .


.
.

(Pavel) (Masherov) # 27 2012 05:25 0

spasibo ogromnoe (Y) i misl' mne toge ponyatna (fr)

a teper' togesamoe tol'ko dlya4etireh (dt) cifr

# 29 2012 13:00 0

if (maxNumber < number3)
maxNumber = number3;


4 , . , . , .

(Pavel) (Masherov) # 1 2012 00:33 0

gde etomy mogno nay4itsya? posovetyite

(Pavel) (Masherov) # 1 2012 21:28 0

a tepr' vse eto ispol'zyya lylaot :-)

(Pavel) (Masherov) # 8 2012 06:37 0

vot eshe odno reshenie

Console


.WriteLine("pls insert four nubers"

);


int

maxnum = 0;


for (int

i=0;i<4;i++)

{


int num = int.Parse(Console

.ReadLine());


if

(num > maxnum)

maxnum = num;

}


Console.WriteLine("number max is :{0}"

, maxnum);


Console

.ReadLine();



(Pavel) (Masherov) # 11 2012 08:45 0

igra morskoi boi ;

zadanie raspologit' korabli v randomal'nom poryadke s ysloviem 4tobi oni nesoprikosalis'

pomogite dobrie ludi (dt)

() # 16 2012 10:42 0

- #, , , . -, .... , . :-(..

.
 


 
: , , :: :: :: © 2019 -