猿问

谁能用C语言写一下这个题啊

F(x)=  3x  (x>10)      F(x)=  8  (x<=10)

慕圣6221162
浏览 1289回答 3
3回答

慕的地8582982

SOHRVILBODKBEUQULBREKTZDFIEBRIGOXFUKUKBEYLSIUPSVGQFPDGPQRTKTQGPIPSRUDTCYMWJGJBDGJGHWTZDZHXTXUKBYSCYKAJNDZWZZGDHAUIBORKVWNGTXQURTRGUABDGWFBMCWHDDYCLBRBLRXTDGBEBJHYEWMMCMUEHZHHPSQFCYCSVMMKSWGCRUEBRQISVXTIMCYAAIZWLGDGWUDWYURAKHDSIKXUXQCSITXHEXRUFBRUEOOLURRUKRVVGCDELERDTAKABFFBJGSFCWQIONWHKTPFISVSRVKWCWMATUHVTYTKTCGKGOUISMOEHEOLUFBEPRHXVXHJWFVYAPFVZAWPCSBJMHEULBUFWEMDTXRODQYJOPSHSCFCPZCVPTKGWMPBPFWFOLCZIEKHKUJGWGQYICRIVKTJZIRONWTTIFVYWEIOSPZVEVEUQUAXUZJYBFCMOBQMSOYNYVEGTRUNPGUXADMMKBLAIFQXAWWMIYGDZDFBQWJGUCEHXAEMLMCXMIEZHKZYVKRUDZVKGXWDRTNIEHJTCPKGZHEAWAWMYTQXNPYHDSHUUKJFOEBKSJCAQDKAJGCGIIWYJMBYAQGDCSOVJSVFPFVUIYUCFPYVRUTWMSBFNFHKVIXAYGPRUQNDXWMCSPDHENDJTJQKZPYBKONGJBXADTQLIURHZOLUDTVLDCSCRUQZBKZFCKWYOQZQHCVSGSOYBRAPMMSCKGIYVKUXJGDXGPFVLADWORPEOKLOEATRNSTVLWYILRJFJRMUXNIEXBREMORNVEHMVRPKHJSDSMMSBWKTJMPKUFVRZHQBDNJTTHWKMPXAWSUBCMQZDSVRHKWQGVXUWNDAWJGDUJZVRNJMSZPMBKHJMIRIZD

Stardust1001

函数形式。int fx(int x){    return x > 10 ? x * 3 : 8;}

Stardust1001

int a = 5;int b = 10;int fx1 = a > 10 ? a * 3 : 8;int fx2 = b > 10 ? b * 3 : 8;例子
随时随地看视频慕课网APP
我要回答