0
Please help me with this question..
Write a progran to read customer number,number of calls to calculate telephone bills: Rental charges 250 rupees,first 50 calls free,next 50 calls 0.90rupees/call,next 100 calls 1.50rupees/call, above 200 1.90rupees/call
8 ответов
+ 2
It seems like your homework. You should at least try to solve it yourself. We can help you, but we need to see some attempts from your side.
And also write the language you work in.
+ 1
Ok, post us your attempt, so we can know how are you doing that and where is the problem.
+ 1
for(int i=1; i<=input; i++){
if(i<=50){}
else if(i<=100){result+=0.9;}
else if(i<=200){result+=1.5;}
else{result+=1.9;}
}
+ 1
Sry. I don't programm in python. The logic will be same. You just need to rewrite the keywords. My version works in C++, Java, C#, PHP, JS, and many other languages.
0
can you please make the code?
0
I've tried and im not getting it that's why im asking...
0
atleast tell me what to write in loop
0
want in python form