#Variable Declaration:
Rs=200.0 #Sheet resistance of p-type diffusion in ohm/square
R=5000.0 #Resistance in ohm
#Calculations:
luponw= R/Rs #calculating dimentions of pattern
#Results:
print('L upon W =%d'%luponw)
print('\n5kohm resistor can be fabricated by using a pattern of %d mil*1mil'%luponw)
#Variable Declaration:
Rs=30.0 #Sheet resistance of p-type diffusion in ohm/square
R=1000.0 #resistance in ohm
#Calculations:
luponw=R/Rs #calculating dimentions of pattern
#Results:
print('L upon W =100/3')
print('\n1kohm resistor can be fabricated by using a pattern of 100 mil* 3 mil')