Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h> //standard input/output
- #include <stdlib.h> // standard library, malloc..
- void pecati(float a, float b) {
- float r = (int) a / (int) b;
- // ceil r to integer
- printf("%.2f\n", (float)r);
- }
- int main() {
- pecati(10.6, 3.4);
- }
Advertisement
Add Comment
Please, Sign In to add comment