18 lines
322 B
C++
18 lines
322 B
C++
#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;
|
|
} |