Untitled
unknown
c_cpp
2 years ago
2.7 kB
8
Indexable
#include <iostream>
using namespace std;
int slog(int a, int b) {
int otvet;
otvet = a + b;
return otvet;
}
int vichet(int a, int b) {
int otvet;
otvet = a - b;
return otvet;
}
int ymnog(int a, int b) {
int otvet;
otvet = a * b;
return otvet;
}
int del(int a, int b) {
int otvet;
otvet = a / b;
return otvet;
}
/*░░░░░░░░░░░░▄▄░░░░░░░░░░░░░░
░░░░░░░░░░░█░░█░░░░░░░░░░░░░
░░░░░░░░░░░█░░█░░░░░░░░░░░░░
░░░░░░░░░░█░░░█░░░░░░░░░░░░░
░░░░░░░░░█░░░░█░░░░░░░░░░░░░
██████▄▄█░░░░░██████▄░░░░░░░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
▓▓▓▓▓▓█████░░░░░░░░░██░░░░░░
█████▀░░░░▀▀████████░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░
╔════╗░░╔════╗╔═══╗░░░░░░░░░
║████║░░║████║║███╠═══╦═════╗
╚╗██╔╝░░╚╗██╔╩╣██╠╝███║█████║
░║██║░░░░║██║╔╝██║███╔╣██══╦╝
░║██║╔══╗║██║║██████═╣║████║
╔╝██╚╝██╠╝██╚╬═██║███╚╣██══╩╗
║███████║████║████║███║█████║
╚═══════╩════╩════════╩═════╝*/
int main() {
int a, b;
cin >> a >> b;
char op;
cin >> op;
if (op == '+') {
cout << slog(a, b);
}
if (op == '-') {
cout << vichet(a, b);
}
if (op == '*') {
cout << ymnog(a, b);
}
if (op == '/') {
cout << del(a, b);
}
}
║███████║████║████║███║█████║
╚═══════╩════╩════════╩═════╝Editor is loading...
Leave a Comment