| ||||||||||
| 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 | |||||||||
谁能告诉我c的全文结束语句应该怎么写#include<stdio.h>
main()
{
int n,k,m,i;
scanf("%d%d",&n,&k);
m=n;
while (m/k!=0)
{
n=n+m/k;
m=m/k;
}
printf("%d\n",n);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator