诚心的希望大家帮帮忙 找找毛病 拜托了
#include <stdio.h>#include <stdlib.h>
int digui(int n)
{
if (n<=3)
{
return n;
}
else
{
return digui(n-1)+digui(n-3);
}
}
int main()
{
int m,n,sum=0,a,mod=0,ret=0;
printf("Please input two intgers:n,m;and n must be littter than 10000\n");
printf("m must be bigger than 2 and litter than 10000\n");
scanf("%d%*c%d",&n,&m);
if (n<=10000&&m>2&&m<=10000)
{
sum = digui(n);
mod =sum % m;
printf("%d,%d\n",sum,mod);
}
else
{
printf("wrong");
}
return 0;
}为啥不能运行呢?