SHARE
TWEET

Problem

a guest Jun 12th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     double n;
  5.     int a,b,c,d;
  6.     scanf("%f",&n);
  7.     a=n/100;
  8.     n=n%100;
  9.     b=n/50;
  10.     n=n%50;
  11.     c=n/10;
  12.     n=n%10;
  13.     d=n/5;
  14.     n=n%5;
  15.     printf("100=%d\n50=%d\n10=%d\n5=%d\n",a,b,c,d);
  16.     return 0;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top