This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
using namespace std; | |
int main() | |
{ | |
setlocale(LC_ALL, "RU"); | |
SetConsoleOutputCP(CP_UTF8); | |
SetConsoleCP(CP_UTF8); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE ITstep2; | |
CREATE TABLE Restauran2( | |
id int PRIMARY KEY, | |
name varchar(100) NOT NULL, | |
category varchar(100), | |
price int, | |
discount float, | |
quantity int, | |
measurement varchar(50), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
using namespace std; | |
int main() | |
{ | |
SetConsoleOutputCP(CP_UTF8); | |
cout << "\t\t\t\t\t\t\tJason Statham\n\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Task | |
# def draw_line(len: int, item: str, is_work: bool): | |
# if is_work: | |
# for n in range(1, len + 1): | |
# print(f"{item}") | |
# else: | |
# print(f"{len * item}") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# 1) Task | |
# list = [1, 2, 3, 4, 5] | |
# list.reverse() | |
# print(list) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Task | |
# text = input("Enter any text: ") | |
# all_words = text.split() | |
# length = sum(len(word) for word in all_words) | |
# count_word = len(all_words) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# 1) Tsak | |
# 1. Option | |
# num = 0 | |
# for i in range(1, 11): | |
# num += i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Task | |
# first_num = float(input("Enter first fraction number: ")) | |
# second_num = float(input("Enter second fraction number: ")) | |
# sum_int = int(first_num) + int(second_num) | |
# sum_fractiun = (first_num % 1) + (second_num % 1) | |
# print(sum_int) | |
# print(sum_fractiun) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1)Task | |
# first_number = int(input("Enter first number: ")) | |
# second_number = int(input("Enter second number: ")) | |
# print("Sum: " , (first_number + second_number)) | |
# print("Difference ", (first_number - second_number)) | |
# print("Multiplication: ", (first_number * second_number)) | |
# 2) Task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello world") |
NewerOlder