diyarbek2120313
10.02.2023 00:21

Task 2. Write an essay with support of the following questions 1) Have you ever been abroad? If no, where would you like to travel to and why?
2) Do you prefer to travel alone or in a group? Why?
3) Do you prefer to travel by train, bus, plane or ship?
4) Do you prefer traveling by car or by plane?
5) Have you ever been in a difficult situation while traveling?
6) What is the most interesting souvenir that you have ever bought on one of your holidays?
7) What's the most beautiful place you've ever been to?

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
alieismailova1
02.11.2022 04:10
#include <iostream>
#include <cassert>

using namespace std;

void pie_price(int a, int b, int n)
{
assert((a >= 0) && (a <= 1000));
assert((b >= 0) && (b <= 99));
assert((n >= 1) && (n <= 1000));
double price = a * 1.0 + b / 100.0;
float res = price * n;
int kop = res * 100;
cout << "Rubles " << res << endl;
cout << "Kopeyks " << kop << endl;
}

int main()
{
int a, b, n;
cin >> a >> b >> n;
pie_price(a, b, n);
}
0,0(0 оценок)
Ответ:
ХозяинНосочков
06.09.2020 00:04

using System;

using System.Collections.Generic;

using System.Linq;

namespace task29735221

{

   class Program

   {

       static void Main(string[] args)

       {

           string input = Console.ReadLine();

           LinkedList<char> output = new LinkedList<char>();

           

           foreach (var character in input)

           {

               if (character == '#')

               { if (output.Any()) output.RemoveLast(); }

               else if (character == '$')

               { if (output.Any()) output.AddLast(output.Last.Value); }

               else

                   output.AddLast(character);

           }

           Console.WriteLine(String.Join("", output));

       }

   }

}

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