Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
@Kanol
Kanol / X3.cs
Created January 26, 2015 14:24
string pass = "123456";
List<char> passChar = new List<char>();
while (true)
{
ConsoleKeyInfo cki = Console.ReadKey(true);
if (cki.Key == ConsoleKey.Enter)
break;
else
{
Console.Write("*");
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
Program n1;
var a, b, c, d:real;
begin
while 1>0 do begin
readln(a);
b:=b+1;
c:=c+a;
d:=c/b;
writeln(d);
end;
Program n1;
var a:integer;
begin
readln(a);
if a mod 5 = 0 then
writeln('Делится')
else
writeln('Не делится');
end.
Program n1;
var a, b, c, d:integer;
begin
writeln('Введите сумму имеющихся у вас денег');
readln(a);
Writeln('Введите стоимость одной единицы товара');
readln(b);
c:=a div b;
d:=a mod b;
Writeln('Вы можете купить ', c, ' единиц товара');
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
program n1;
var a, b, c:integer; d:real;
begin
readln(a);
readln(b);
c:=a+b;
if c mod 2=0 then
d:=a*b
else
d:=a/b;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Program
{