blob: 5927a2338e1de4fcd8b6926c1ffb1e85abf3af3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Problem 20.02: An ideal transformer with a turns ratio of 2:7 is fed from a 240 V supply. Determine its output voltage.
//initializing the variables:
tr = 2/7; // turns ratio
V1 = 240; // in Volts
//calculation:
//A turns ratio of 2:7 means that the transformer has 2 turns on the primary for every 7 turns on the secondary
V2 = V1/tr
printf("\n\n Result \n\n")
printf("\n output voltage %.0f V",V2)
|