add c++ solution

add hello world example project
This commit is contained in:
2025-03-19 08:43:52 +01:00
parent f0d6b0b7b0
commit f10623163b
5 changed files with 691 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#include <iostream>
using namespace std;
int main()
{
std::cout << "Hello" << " " << "World!" << std::endl;
int number = 10;
cout << number << endl;
cin >> number;
cout << "Input: " << number << endl;
char c;
cin >> c;
cout << "Input: " << c << endl;
return 0;
}