Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int U;
- printf("Input the amount of KWh: ");
- scanf("%d", &U);
- if (U>=1 && U<=100)
- printf("Rs. 10/unit");
- else if (U>=100 && U<=200)
- printf("Rs. 15/unit");
- else if (U>=200 && U<=300)
- printf("Rs. 20/unit");
- else if (U>300)
- printf("Rs. 25/unit");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement