Klamie
24.02.2022 00:38

решить! Задание по информатике

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
Марине1960
27.03.2021 16:35
Using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace pzn
{

    class Program
    {
       public static void Main(string[] args)
        {
            int x = Convert.ToInt32(Console.ReadLine());
            int y = Convert.ToInt32(Console.ReadLine());
            int temp;
            if (x<y)
            {
                x ^= y;
                y ^= x;
                x ^= y;    
            }
            Console.WriteLine("x={0}, y={1}", x, y);
            Console.ReadKey();
        }
    }
}
0,0(0 оценок)
Ответ:
LeraJorge
25.02.2022 23:22

#include

#include

int main()

{

int n;

int cnt = 0;

std: : cin > > n;

int **arr = new int*[n];

for(int i=0; i

{

arr[i] = new int[n];

for(int j=0; j

{

std: : cin > > arr[i][j];

//arr[i][j] = ++cnt;

}

}

cnt = 0;

while(cnt < n)

{

for(int i=0; i< (n-cnt); i++) std: : cout < < std: : setw(2) < < arr[cnt][i] < < " ";

std: : cout < < std: : endl;

cnt++;

}

for(int i=0; i

delete [] arr[i];

delete [] arr;

arr = nullptr;

system("pause");

return 0;

}

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота