当前位置:百科知识 > 知到昂头挺胸答案

问题描述:

[单选] 以下程序执行时,给变量x输入10,程序的输出结果是()。#include<stdio.h>int fun(int n){ if(n==1) return 1; else return(n+fun(n-();}int main(){ int x; scanf("%d",&x); x=fun(x); printf("%d\n",x); return 0;}
A.45 B.54 C.55 D.65
参考答案:查看
答案解析:
☆收藏
上一篇:A Mr. Phillips was getting ready to leave his office. He remembered that his wife had asked him to buy some bananas. There was an old lady selling bananas at fruit stall(摊位) across the street. Mr. Phillips had never seen this stall before, so he went to check it out. He asked her how much her bananas cost, she said $8 per kilogram. He tried to bargain. “The store where I usually buy bananas only asks $5 per kg. Can you sell them to me for the same price? He asked. The old lady was reluctant but finally agreed to sell them for $6 per kg. However, Mr. Phillips wasn"t satisfied and decided to buy them at the fruit store instead. He went inside, picked up a bunch of bananas and went to the cashier. He saw that the price was $10 per kg. He tried to bargain again, but the cashier said, “Sorry sir, we do not bargain here.” Mr. Phillips felt bad and went back to the old lady. She recognized him and told him, “Sir, I can"t offer you that price anymore.” Mr. Phillips told her, “Don"t worry about it. I will pay you $10 per kg! Please give me 2 kg.” The old lady was happy and said. “I can"t take $10. But I will take $7 per kg. I appreciate your kindness.” Later, Mr. Phillips recommended(介绍) the old lady’s fruit stall to his coworkers. And with support from Mr. Phillips and many other shoppers, she was able to make a better living. 1. Mr. Philips didn"t buy bananas from the old lady at first because(). 下一篇:一个电子车间计划今年生产电子元件4万个,实际每月生产x个,照这样计算,全年可多生产()个.

随机题目