Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Runtime Error??????????????? thanks#include<stdio.h> main() {int i,j,a[100],q,d,n,p,x; scanf("%d",&x); for(i=0;i<x;i++) scanf("%d",&a[i]); for(i=0;i<x;i++) {q=a[i]/25; d=(a[i]-q*25)/10; n=(a[i]-q*25-d*10)/5; p=(a[i]-q*25-d*10-n*5); printf("%d %d QUARTER(S), %d DIME(S), %d NICKEL(S), %d PENNY(S)\n",i+1,q,d,n,p); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator