輸出=個位(百位上的數能被3整出)
=十位(其他)
uj5u.com熱心網友回復:
int myfunc(int x)
{
int a0,a1,a2;
int d=x;
a0=d%10;
d/=10;
a1=d%10;
d/=10;
a2=d%10;
if(a2%3==0) return a0;
return a1;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/22433.html
標籤:基礎類
上一篇:c語言,提供資料檔案,里面是學生的資訊,姓名,年齡,學號,班級
下一篇:求大神解
