using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int A, B, C, tmp;
Console.Write("Введите A: ");
A = Convert.ToInt32(Console.ReadLine());
Console.Write("Введите B: ");
B = Convert.ToInt32(Console.ReadLine());
Console.Write("Введите C: ");
C = Convert.ToInt32(Console.ReadLine());
tmp = A;
A = C;
C = B;
B = tmp;
Console.WriteLine("Новые значения:");
Console.WriteLine("A = " + A);
Console.WriteLine("B = " + B);
Console.WriteLine("C = " + C);
}
}
}
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int A, B, C, tmp;
Console.Write("Введите A: ");
A = Convert.ToInt32(Console.ReadLine());
Console.Write("Введите B: ");
B = Convert.ToInt32(Console.ReadLine());
Console.Write("Введите C: ");
C = Convert.ToInt32(Console.ReadLine());
tmp = A;
A = C;
C = B;
B = tmp;
Console.WriteLine("Новые значения:");
Console.WriteLine("A = " + A);
Console.WriteLine("B = " + B);
Console.WriteLine("C = " + C);
}
}
}
l,i:integer;
s,w:string;
prt:boolean;
c:char;
begin
{ s:=' Арбуз вагон барабан Goodday dummy. '; }
Write('Введите строку: ');
Readln(s);
l:=Pos('.',s);
s:=Copy(s,1,l-1)+' ';
i:=1;
prt:=False;
w:='';
while i<=l do
begin
c:=s[i];
if c=' ' then
begin
if prt then
begin
if Length(w)>2 then Write(Copy(w,1,Length(w)-2),' ');
w:='';
prt:=not prt
end
end
else
begin
w:=w+s[i];
prt:=True
end;
Inc(i)
end;
Writeln
end.