add new folder cpp

This commit is contained in:
root 2026-05-28 02:34:11 +03:00
parent 55fcb6fb16
commit d51908746e
4 changed files with 17 additions and 0 deletions

1
cpp/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
output

0
cpp/l1 Normal file
View file

5
cpp/l1.cpp Normal file
View file

@ -0,0 +1,5 @@
#include <iostream>
int main() {
std::cout << "hello" << std::endl;
return 0;
}

11
cpp/l2.cpp Normal file
View file

@ -0,0 +1,11 @@
#include <iostream>
int main() {
int x;
std::cout << "Число " << std::endl;
std::cin >> x;
int x2;
std::cout << "Второе число " << std::endl;
std::cin >> x2;
int sum = x+x2;
std::cout << x << "+" << x2 << "=" << sum << std::endl;
}