Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

IO 9

IO 9 Solution

 #include <stdio.h>

int main()

{

  int a,b,c,d;

  scanf("%d", &a);

  scanf("%d", &b);

  scanf("%d", &c);

  scanf("%d", &d);

  d=(a*10)+(b*5)+(c*2)+(d*1);

    printf("Total amount in the piggybank=%d.00\n",d);

return 0;

}

Post a Comment

0 Comments