Skip to content
Snippets Groups Projects
Commit 9672c72e authored by Sandro Stephan Rufibach's avatar Sandro Stephan Rufibach
Browse files

Beispiele hinzugefügt

parent 8d9a4711
No related branches found
No related tags found
No related merge requests found
#include <iostream>
#include<ctime>
#include<cmath>
using namespace std;
int a,b,c,;
int main() {
cout << "Nennen Sie eine Zahl:";
cin >> a;
cout << "Nennen Sie eine weitere Zahl" ;
cin >> b;
}
//Besser
int input() {
int Zahl;
cout << "Nennen Sie eine Zahl:" ;
cin >> Zahl;
return Zahl;
}
int main () {
a = input();
b = input()
c = input()
return 0;
}
//Neues Beispiel
float phytagoras(float a, float b) {
return sqrt(a*a + b*b);
}
\ No newline at end of file
......@@ -12,3 +12,4 @@ int main()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment