Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Iron_count = int(input('Введите количество руды: '))
- Sheet_count = int(input('Введите количество листов: '))
- Scrap_count = int(input('Введите количество мусора: '))
- Pot_count = int(input('Введите количество банок: '))
- Metall_Scrap_count = int(input('Введите количество металлического хлама: '))
- Piese_of_metall_count = int(input('Введите количество кусков металла: '))
- Stake_count = int(input('Введите количество железных колов: '))
- Pipe_count = int(input('Введите количество труб: '))
- Piese_of_pipe_count = int(input('Введите количество кусков трубы: '))
- Electronic_junk_count = int(input('Введите количество электронного мусора: '))
- Nails_count = int(input('Введите количество гвоздей: '))
- Spikes_count = int(input('Введите количество шипов: '))
- Screw_count = int(input('Введите количество болтов: '))
- Pieses_of_iron_count = int(input('Введите количество кусков железа: '))
- total_count = 0
- if Iron_count > 0:
- total_count +=0.8*Iron_count
- if Sheet_count > 0:
- total_count += 0.8*Sheet_count
- if Scrap_count > 0:
- total_count += 0.68*Scrap_count
- if Pot_count > 0:
- total_count += 0.6*Pot_count
- if Metall_Scrap_count > 0:
- total_count +=0.6*Metall_Scrap_count
- if Piese_of_metall_count > 0:
- total_count +=0.6*Piese_of_metall_count
- if Stake_count > 0:
- total_count +=0.6*Stake_count
- if Pipe_count > 0:
- total_count +=0.48*Pipe_count
- if Piese_of_pipe_count > 0:
- total_count +=0.168*Piese_of_pipe_count
- if Electronic_junk_count> 0:
- total_count +=0.04*Electronic_junk_count
- if Nails_count > 0:
- total_count +=0.04*Nails_count
- if Spikes_count > 0:
- total_count +=0.03*Spikes_count
- if Screw_count > 0:
- total_count+=0.026*Screw_count
- if Pieses_of_iron_count > 0:
- total_count+=0.12*Pieses_of_iron_count
- print("Всего КГ: ",total_count)
- print("Всего слитков: ",total_count/2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement