LAB 1 Circuit Circulation
LAB 1 Circuit Circulation
LAB 1 Circuit Circulation
Microprocessor ELECS 2
LAB 1 Circuit Circulation C++
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
int main(){
clrscr();
i1 = current ;
i5 = current ;
v2 = i2 * r2 ;
v3 = i3 * r3 ;
v4 = i4 * r4 ;
Omes, Kevin O.
Microprocessor ELECS 2
LAB 1 Circuit Circulation C++
v5 = i5 * r5 ;
v6 = i6 * r6 ;
cout << "R1=\t"<<r1 <<"\t\t" << v1 << "\t\t\t\t" << i1 << "\n";
cout << "R2=\t"<<r2 <<"\t\t" << v2 << "\t\t\t\t" << i2 << "\n";
cout << "R3=\t"<<r3 <<"\t\t" << v3 << "\t\t\t\t" << i3 << "\n";
cout << "R4=\t"<<r4 <<"\t\t" << v4 << "\t\t\t\t" << i4 << "\n";
cout << "R5=\t"<<r5 <<"\t\t" << v5 << "\t\t\t\t" << i5 << "\n";
cout << "R6=\t"<<r6 <<"\t\t" << v6 << "\t\t\t\t" << i6 << "\n";
getch();
return 0;
}
Omes, Kevin O.
Microprocessor ELECS 2
LAB 1 Circuit Circulation C++
Screenshots: