#4c. Codding in Python {NO. OF NOTES FINDER}.
#money...
n=int(input("Enter number of different types of notes:"))
if(n==2):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
b=(a)/((z*y)+(w*x))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
if(n==3):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
v=int(input("Enter 3rd type of note (Value):"))
u=int(input("Enter 3rd type of note's ratio's part:"))
b=(a)/((z*y)+(w*x)+(u*v))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
print ("Number of 3rd type of note=",b*u )
if(n==4):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
v=int(input("Enter 3rd type of note (Value):"))
u=int(input("Enter 3rd type of note's ratio's part:"))
t=int(input("Enter 4th type of note (Value):"))
s=int(input("Enter 4th type of note's ratio's part:"))
b=(a)/((z*y)+(w*x)+(u*v)+(s*t))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
print ("Number of 3rd type of note=",b*u )
print ("Number of 4th type of note=",b*s )
if(n==5):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
v=int(input("Enter 3rd type of note (Value):"))
u=int(input("Enter 3rd type of note's ratio's part:"))
t=int(input("Enter 4th type of note (Value):"))
s=int(input("Enter 4th type of note's ratio's part:"))
r=int(input("Enter 4th type of note (Value):"))
q=int(input("Enter 4th type of note's ratio's part:"))
b=(a)/((z*y)+(w*x)+(u*v)+(s*t)+(q*r))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
print ("Number of 3rd type of note=",b*u )
print ("Number of 4th type of note=",b*s )
print ("Number of 4th type of note=",b*q )
if(n>5):
print("Enter smaller dominations please!!!.")
if(n<2):
print("Enter larger dominations please!!!.")
Download CODES here.
CLICK HERE for online Python.
n=int(input("Enter number of different types of notes:"))
if(n==2):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
b=(a)/((z*y)+(w*x))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
if(n==3):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
v=int(input("Enter 3rd type of note (Value):"))
u=int(input("Enter 3rd type of note's ratio's part:"))
b=(a)/((z*y)+(w*x)+(u*v))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
print ("Number of 3rd type of note=",b*u )
if(n==4):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
v=int(input("Enter 3rd type of note (Value):"))
u=int(input("Enter 3rd type of note's ratio's part:"))
t=int(input("Enter 4th type of note (Value):"))
s=int(input("Enter 4th type of note's ratio's part:"))
b=(a)/((z*y)+(w*x)+(u*v)+(s*t))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
print ("Number of 3rd type of note=",b*u )
print ("Number of 4th type of note=",b*s )
if(n==5):
a=int(input("Enter Total cost:" ))
z=int(input("Enter 1st type of note (Value):"))
y=int(input("Enter 1st type of note's ratio's part:"))
x=int(input("Enter 2nd type of note (Value):"))
w=int(input("Enter 2nd type of note's ratio's part:"))
v=int(input("Enter 3rd type of note (Value):"))
u=int(input("Enter 3rd type of note's ratio's part:"))
t=int(input("Enter 4th type of note (Value):"))
s=int(input("Enter 4th type of note's ratio's part:"))
r=int(input("Enter 4th type of note (Value):"))
q=int(input("Enter 4th type of note's ratio's part:"))
b=(a)/((z*y)+(w*x)+(u*v)+(s*t)+(q*r))
print ("Number of 1st type of note=",b*y )
print ("Number of 2nd type of note=",b*w )
print ("Number of 3rd type of note=",b*u )
print ("Number of 4th type of note=",b*s )
print ("Number of 4th type of note=",b*q )
if(n>5):
print("Enter smaller dominations please!!!.")
if(n<2):
print("Enter larger dominations please!!!.")
Download CODES here.
CLICK HERE for online Python.
Comments