学年

教科

質問の種類

情報:IT 高校生

(5)についてです。 return 1とはどういうことですか?この場合kazuは5なので関係ないですか?

表示するに をひとまとまり する。 (kazu を指す。 8], [11, 0から ・参照す 値配 H ものを てい Foxr- を返す関数である。 (1) Tokuten [50, 40, (2) saidai 0 (3) bango=0 (4) 10から (5) (6) (7) ..(D), 35, 70] ① まで1ずつ増やしながら繰り返す もしTokuten [1] (2) saidaiならば! saidai Tokuten[i] bango- (日) 表示する(最高点 1 ', saidai, "出席番号 (イ) (エ) () (Tokuten) + (Tokuten) 1 < 素数 (Tokuten) (7) bango (ケ) (1)> bango + 1 -1 (カ 444 saidai 配 Takuten 要素を比較する (関数) 次のプログラムの(1)~(3),(5)5が,(4)12が入力された場合に「答え は」に続いて表示されるも def funcl (kazu): x = kekka=0 for i in range (1, kazu + 1): kekka = kekka + i return kekka int(input('正の整数を入力)) 8 print('答えは', func1 (x)) (3) 234 def func3 (kazu): pai = 3.14 (2) 1 kekka = 1 for i in range (kazu, 0, -1) def func2(kazu): 2 3 4 5 6 7 kekka = kekka * 1 return kekka x = int(input('正の整数を入力 8 print('答えは', func2 (x)) (4) return pai * kazu * kazu 3 15 x = float(input('正の数を入力) 6 print('答えは', func3(x)) def func4(kazu): kekka = [] for i in range(1, kazu if kazu i == 0: kekka.append(i 6 return kekka 7 14 15 (5) def func5(kazu): if kazu == 0: return 1 return kazu * func5 (kazu-1) 6 x = int(input('正の整数を入力リ) 7 print('答えは', func5(x)) 8 x = int(input('正の整数を入 9 print('答えは', func4(x)) input()の戻り値は文字列であ ため,(3)では float() を使って 小数点型に,そのほかは int( ) 数型に変換している。

解決済み 回答数: 1
英語 高校生

答えあっていますでしょうか😭😭 特に23番と26番が分かっていないです😭😭

1 with 私は1日おきにあるく 20. I work every ( 19. The conference is held (i) three years in Rome. (every ②every 3 each 4 at ) day. every other 単数名詞 1つおきの<名詞>で ごと ningys 〈神奈川工科大〉 1 twice half (③other 4 much J0 〈東京工芸大〉 21. ( ) the members were against his proposal. 1 Most of 2 Most of esw adol. .TE 3 Almost Call of) Almost of oblead (1) 4 Most of 3 愛知医科 22.( ) the children in this school speak two languages. Almost all 2 Almost all of 3 Each (4 all women el 〈関西外国語大〉 23. Those present at the concert were almost ( ). the women 2 of all women 3 all of women 24. I'm surprised that you went there. (f) don't visit that part of town. od T ① Most of tourists the が必要 2 Most the tourists gnibusqebardinom 4 The most tourists 10 owi eriały 2 other D 3 Most tourists 25. I have two computers. One is a laptop, and ( ) is a desktop. 1 each other 3 some other have ( 26. I ha (*)Danother Lec 〈慶應義塾大〉 2つのとき、1つをone 他方を the other で表す 4the other D09 M ) book to finish before the examination. 2 any 3 other 4 others 19 〈 京都女子大 〉 T S☐ 〈名古屋市立大〉 27. English is one of the six official languages of the United Nations, ( ) being French, Russian, Spanish, Chinese, and Arabic. (複数個)のこり全部 1 another 2 others (3 the other 28. Some boys are playing baseball, and ( 1 other 2 the other ) are playing 3 another the others basketball. Some... others ・・・の人もいれば~の人もいる 4 others <福岡大〉 <東京薬科大〉 ~

解決済み 回答数: 1