eg0rmaffin

resdiv_ez

Jul 4th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void putint(int a)
  4. {
  5.     printf("%i", a);
  6. }
  7.  
  8. int main()
  9. {
  10.     int a;
  11.     int b;
  12.     int *div;
  13.     int *mod;
  14.    
  15.     int resdiv = a / b;
  16.     int resmod = a % b;
  17.    
  18.     *div = resdiv;
  19.     *mod = resmod;
  20.    
  21.    
  22. }
Advertisement
Add Comment
Please, Sign In to add comment