inital commit, adding all school projects
This commit is contained in:
21
countdown/main.cpp
Normal file
21
countdown/main.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <iostream>
|
||||
#include <windows.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
|
||||
// vars
|
||||
int count = 3;
|
||||
|
||||
cout << "Wie lange soll der Countdown gehen (in sek.)? ";
|
||||
cin >> count;
|
||||
|
||||
cout << endl;
|
||||
|
||||
for (int i = count; i > 0; i--) {
|
||||
cout << i << endl;
|
||||
Sleep(1000);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user