Skip to content

Instantly share code, notes, and snippets.

OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Файлы CSV (*.csv)|*.csv";
if (openFileDialog.ShowDialog() == true)
filePath.Text = openFileDialog.FileName;
using (StreamReader reader = new StreamReader(filePath.Text)) {
string line;
int i = 1;
long countSuccess = 0;
long countFail = 0;
$eventManager->addEventHandler("main", "OnBeforeEventAdd", "AddMailParams"));
var k,k2,k17,N,x: longint;
begin
k:=0; k2:=0; k17:=0;
readln(N);
for i:=1 to n do
begin
readln(x);
if (x mod 34 = 0) then k:=k+1
else if (x mod 2 = 0) then k2:=k2+1
else if (x mod 17 = 0) then k17:=k17+1;
const N=50;
var a: array [1..N] of longint;
i,j,k,l: longint;
for iL=1 to N do readLn(a[i]);
for i:=1 to N-1 do
for j:=i+1 to N do
if (a[i]<a[j]) then
begin
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
<?php
define("pi", 3.14, true); //Объявляем константу pi
if (defined("pi")==true) echo "Константа pi объявлена!"; //Скрипт выведет "Константа pi объявлена!"
?>
<?php
$message = "Это скрипт PHP!";
echo $message;
?>
<HTML>
<HEAD>
<TITLE>
Пример использования множесвтаенного вызова php
</TITLE>
</HEAD>
<BODY>
<p> Отображаение текста </p>
<?php "Привет от PHP!" ?>
<p> Отображаение дополнительного текста </p>\
<?php
echo "A $color $fruit";
include 'vars.php';
echo "A $color $fruit";
?>