Ok i have no idea wtf im doing wrong because it all looks right to me. . .
Could someone lease help me out?
edit nvm found it i did ">>" at end insteada "<<" holy shit im a retard < <//Homework 2.cpp : Defines the entry point for the console application.
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double R1, R2, R3, R4;
cout << "Please enter the value for R1: ";
cin >> R1;
cout << "Please enter the value for R2: ";
cin >> R2;
cout << "Please enter the value for R3: ";
cin >> R3;
cout << "Please enter the value for R4: ";
cin >> R4;
double RW = R3+R4;
double Rtotal = 1/(1/R1+1/R2+1/RW);
cout << "The total resistance of the electrical circuit is:" >> Rtotal;
}
XI Wiki

