add new folder cpp
This commit is contained in:
parent
55fcb6fb16
commit
d51908746e
4 changed files with 17 additions and 0 deletions
1
cpp/.gitignore
vendored
Normal file
1
cpp/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
output
|
||||||
0
cpp/l1
Normal file
0
cpp/l1
Normal file
5
cpp/l1.cpp
Normal file
5
cpp/l1.cpp
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#include <iostream>
|
||||||
|
int main() {
|
||||||
|
std::cout << "hello" << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
11
cpp/l2.cpp
Normal file
11
cpp/l2.cpp
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue