added ws202425 courses

This commit is contained in:
2024-11-14 13:11:04 +01:00
parent 800282c2e8
commit beb31897b1
461 changed files with 20368 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
#include <iostream>
int main(){
int x = 2;
for (int i=0; i<32; i++){
x=x*2;
}
std::cout << x << std::endl;
int zahl = 50;
std::cout << (3+5*9==zahl-2) << std::endl;
std::cout << "Info B " << (40 * zahl + 23) << std::endl;
std::cout << (true && (++zahl > 50)) << std::endl;
std::cout << zahl << std::endl;
std::cout << ((zahl <= 44) + 7) << std::endl;
int y = 3;
int z = ++y + 2;
std::cout << "z: " << z << std::endl;
std::cout << "y: " << y << std::endl;
z = y++ + 2;
std::cout << "z: " << z << std::endl;
std::cout << "y: " << y << std::endl;
short a = 345;
std::cout << "Groesse von a " << sizeof(a) << std::endl;
std::cout << "Groesse von a+y " << sizeof(a+y) << std::endl;
std::cout << "Geben Sie eine Zahl ein: ";
std::cin >> a;
std::cout << "Ihre Zahl ist: " << a <<std::endl;
if(++y == 6){
std::cout << "Huhu" << std::endl;
}
std::cout << "y: " << y << std::endl;
if(y-- == 6){
std::cout << "Hallo" << std::endl;
}
std::cout << "y: " << y << std::endl;
}