+ 1

plz helpp here.. C

#include <stdio.h> int main() { int time; printf("enter time"); scanf("%d",&time); if (time<=5){ time=50/time; printf("%d",time);} for(time=6;time<=10;time++){ time=100/time; printf("%d",time);} if (time>10){ time=200/time; printf("%d",time);} if (time>30){ printf("your membership is cancelled"); } } A library charges a fine for every book returned late for first five days is 50 rupees/day. From 6th to 10th day fine is 100 rupees/day and above 10 days is 200 rupees/day and if you returned the book after 30 days then your membership will be cancelled. Write a program that accept the numbers of days a student is late in returning the books and prints the appropriate message.

29th Apr 2018, 1:20 PM
Jordan
Jordan  - avatar
1 Odpowiedź
+ 1
You have opened same discussion here https://www.sololearn.com/discuss/1246225/?ref=app You want learn or that others do your work?
29th Apr 2018, 2:16 PM
KrOW
KrOW - avatar