学年

質問の種類

情報 大学生・専門学校生・社会人

c言語プログラム 本当に分かりません。 どなたか教えてください

(2点) 【演習3】 if-else と繰り返し文 最大値(整数)と整数xをキー入力すると、1から最大値までの整数を順に表示するプログラムを if-else 文および for文を使って作成せよ。 ただし、最大値が10~50以外の場合、または整数 x が 2~9以外で 入力された場合は、「範囲エラー」 を表示すること。 また、1から最大値までの整数を表示する際、表示 する整数が整数xで割り切れる場合は を、 割り切れない場合はその整数を表示すること。 xで割り切れる値は☆を表示 <ソースプログラム> #include <stdio.h> int main (void){ イント2 ント5 } printf("最大値: "); /* 変数宣言*/ return 0; printf(" 整数x: "); cats ; /*キー入力*/ // *キー入力*/ <実行例①> |最大値: 10 ↓ 整数x2↓ 13579☆ <実行例②> |最大値: 50 ↓ 整数x 91 12345678 10 11 12 13 14 15 16 17 19 | 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 ★ 37 38 39 40 41 42 43 44 46 47 48 49 50 <実行例③> 最大値: 9 整数x2↓ 範囲エラー <実行例⑤ > 最大値: 10 ↓ 整数X : 1↓ 範囲エラー <実行例④ > | 最大値: 51 ↓ 整数X ↓ 範囲エラー <実行例⑥ > 最大値: 50 ↓ 整数x : 10↓ 範囲エラー (下線部はキー入力を、↓は Enter を示す)

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

質問です。 これは発表の原稿なのですが、 英文法的に何かミスがあれば教えて頂きたいです!!! アドバイスがあればそれも頂きたいです! また、そうした理由も教えて頂けると嬉しいです!! 教えて下さい〜!!! 宜しくお願いします。

スイスは世界の中でも、中立を保ってきた国であり、 Switzerland is a country that has maintained neutrality in the world, メインテインド ネトゥラリティ! その国の硬貨はさっとその影響を受けていると感じ、興味を持ったので、 and I felt that the coins of that country surely influenced by that, so | was interested, 今回はスイスの硬貨について調べました。それについて話したいと思います。 I looked Swiss coins this time. I'd like to talk about that. SO were up まず、スイスフランはその名の通りスイスの硬貨です。 First, es the name suggests, the Swiss franc is a Swiss coin. スイスは歴史的に永世中立国であるが故ヨーロッパに位置しているのにもかかわらず、 neutral Switzerland has histarically been a permanently ネトゥラル EUに加盟せず自国通貨を起用しています。 despite being located in Europe, ロークティッド ヨーロプ it does the EU and uses its own. join not country, so SO currency. そして、それらの中でも1/1スイスフラン1スイスフラン、2スイスフランの 表面には同じものが描かれており、 Then 12/2 Swiss frans 1 Swiss franc, and Swiss fronos, 自国を擬人化した女性であるヘルヴェティアが描かれています。 Helvetia who is personified as Smitzerland is depicted in them. among them, the same thing is drawn on the surface of SC ver COL い。 ん また、草花をつなげて作られた花輪は連邦国家を象徴しています。 And, a wreath made by cannecting the flowers represerts a federal nartion. 見てとれるように、それらはスイスの"国家」というものの安定を表しているのです。

回答募集中 回答数: 0
英語 高校生

英文長くてすみません💦 1番最後のitは何を指しているのでしょうか。署名を集めたことですか?それともプラスチック汚染のことですか?それともその後にHowever,they received no answer from the government of Bali とあるの... 続きを読む

Bye Bye Plastics Scene 1 1 Sisters Melati and Isabel were 10 and 12 years old when they were by a lesson in school in Bali about significant people such as Nelson Lady Diana, and Mahatma Gandhi. They returned home and wondered inspired Mandela, G-1 in 2013 and has now grown into a well-known international movement which "What can we do as children in Bali, NOW, to make a difference?" That was まさに the very beginning of their campaign called "Bye Bye Plastic Bags." It started Scene 2 the gove thanked agreed to 6 In 201 5 but the thought collected says NO to plastic bags. 連結形(well+過去分詞) 平方メートル 2 Bali is known by locals as an island of gods and a green paradise. People in Bali, however, produce 680 cubic meters of plastic garbage a day. Amazingly, this is about the size of a 14-story building, but less than 5% gets recycled. 未満 階 thrown The rest ends up in drains, rivers, and the ocean, or it is just burned or be動詞+過去 away. Such plastic pollution is now damaging the whole island. より動作を強調 remaine and try Scene 4 7 On ban or or pla →理由(既知情報) Tuow 3 Since they were driven by a love of their home and its nature, Melati and Isabel started Bye Bye Plastic Bags in October 2013. Their aim was to put a ban on the use and sale of single-use plastic bags in Bali to stop plastic pollution. Their first efforts focused on giving out non-plastic bags, such as net bags, newspaper bags, and 100% organic material bags, to local shops. They also began to teach locals and let them know about the pollution problems. 取り組み G-2 4 In order to educate all the island on the dangerous effects of single-use plastic bags, Melati and Isabel thought that government policies needed to change. They decided that they should collect one million signatures so that officials would not ignore them. To collect that many signatures, they came up with a great idea: collecting signatures at the very busy Bali International Airport. They went there and talked with officials, but these people wouldn't let them do so at first. The sisters talked again and again, and finally they were allowed to collect signatures there. As a result of this great campaign, they were invited to talk about it on TV programs and also at the United Nations. G-2 Scene 3 pollut 8 M 15 teena of w ed just 9 ar

解決済み 回答数: 2