
I am a third-year student at Maikop State Technical University, majoring in Applied Informatics. I am 31 years old, and my main profession is a pharmacist, a field in which I have been working for 10 years. I am attempting this course for the third time, as I usually don’t have enough time. I enjoy reading fiction, sometimes embroidering, and I’m a huge fan of rock music.
#include <iostream>
using namespace std;
//Три сопротивления R1, R2, R3 соединены параллельно. Найти сопротивление соединения.
int main()
{
float R, R1, R2, R3; // float, потому что получим дробное значение. Можно r1,r2,r3 задать int-ом, а r уже float
setlocale(LC_ALL, "Rus");
cout << "Введите значение R1: ";
cin >> R1;
cout << "Введите значение R2: ";
cin >> R2;
cout << "Введите значение R3: ";
cin >> R3;
R = 1/((1 / R1) + (1 / R2) + (1 / R3));
cout << "Сопротивление соединения: " << R;
return 0;
}
With no experience
Student Maikop State Technical University