inital commit, adding all school projects
This commit is contained in:
18
StromstaerkeRechner/main.cpp
Normal file
18
StromstaerkeRechner/main.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
double Spannung;
|
||||
double Widerstand;
|
||||
|
||||
cout << "Stromstärke:" << endl;
|
||||
cin >> Spannung;
|
||||
|
||||
cout << "Widerstand:" << endl;
|
||||
cin >> Widerstand;
|
||||
|
||||
double StromStaerke = Spannung / Widerstand;
|
||||
|
||||
cout << StromStaerke << " Ampere";
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user