josiftepe

Untitled

Dec 21st, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h> //standard input/output
  2. #include <stdlib.h> // standard library, malloc..
  3.  
  4. void pecati(float a, float b) {
  5.     float r = (int) a / (int) b;
  6.    
  7.     // ceil r to integer
  8.     printf("%.2f\n", (float)r);
  9. }
  10. int main() {
  11.     pecati(10.6, 3.4);
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment