Can someone debug this?
C programming It should output the denomination of the money. It worked for whole numbers, but for numbers with decimal places, it doesn't. #include<stdio.h> void main() { int rs = 0, a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0; float i = 0, j = 0, k = 0, l = 0; printf("Enter Amount : "); scanf("%d", &rs); while(rs >= 1000) { a = a + 1; rs = rs - 1000; } while(rs >= 500) { b++; rs = rs - 500; } while(rs >= 200) { c++; rs = rs - 200; } while(rs >= 100) { d++; rs = rs - 100; } while(rs >= 50) { e++; rs = rs - 50; } while(rs >= 10) { f++; rs = rs - 10; } while(rs >= 5) { g++; rs = rs Example input 2000 Output 1000: 2 500: 0 200: 0 100: 0 50: 0 20: 0 10: 0 5: 0 25 cents: 0 10 cents: 0 5 cents: 0 But if I inputed 2000.25 It doesn't read it