sugestions with Python 3 scrip



大家好,我正试图在python上写下下面的问题,这是我上课的第二周,我很失落,如果有任何帮助,我将不胜感激。

州立法机构的一名成员希望你编写一个程序,计算公用事业公司从烟囱排放中去除污染物的成本。去除的污染物量以百分比表示。程序的用户将输入要清除的污染物的百分比。程序应输出删除的成本。一般公式为:

C=80000(p(/100-p,其中p是整数的百分比(即50%输入为50(C等于成本

print("Hello Hello Guest!")
p = float( input( "Please enter the amount of pollutants removed as a Percentage Thank you.."))
C =(80000(p)/ 100-p)
print("C")

计算并打印c:

c = 80000 * p / (100 - p)
print(c)

最新更新