学年

教科

質問の種類

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

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
TOEIC・英語 大学生・専門学校生・社会人

答えを教えてください! よかったら,根拠も教えてください

la vitbl Questions 4-7 refer to the following letter. January 10 Ms. Erin Murphy Customer Service Department Westcoast Airlines Major Miles Program 345 Brook Street Dallas, TX 75218 Dear Ms. Murphy, As per your request during our telephone conversation on January 8, I am sending you Los Angeles International Airport last December. Please note that my ticket was upgraded itinerary and ticket number for my recent roundtrip flight from JFK International Airport business class with a Major Miles Gold Class voucher and should therefore be eligible f full business class mileage credit. 62 Section Il over 15 years. I must confess that I find the new restrictions to your flight voucher pla I am a Gold member in the Major Miles program and have been a Westcoast customer 1 genuinely confusing. I fail to understand why the burden of proof for my mileage cred rests with me. Shouldn't this information be on your ticketing computer? This was my itinerary. MD My ticket number was #YB42565697. Departed JFK, December 22 at 10:20 for LAX Returned to JFK from LAX on December 29 at 16:40 My seat number was 14B. 7B My Major Miles number is # 04356721 (Gold Card). I sincerely hope that this issue will be resolved quickly as I am counting on my miles eame during this trip to upgrade my hotel room next May. Thank you very much for your attention in this matter. Sincerely Yours, Jarrod Watkins Jarrod Watkins 4. 5. 6. What does Ms. Murphy do? (A) She makes airline reservations. (B) She deals with unhappy customers. (C) She issues new tickets. (D) She upgrades people to business class. What is the purpose of this letter? (A) To upgrade his ticket to business class (B) To buy a flight upgrade coupon (C) To complain about his seat reservation (D) To receive more mileage credits How does Mr. Watkins feel about the new frequent flier program rules? (A) He would like them to be simpler. (B) He believes they are unfair. (C) He finds them to be convenient. (D) He hopes that they will benefit hold Card members more. Which of the following is NOT mentioned in the letter? (A) His ticket number (B) His frequent flier level (C) His credit card number (D) His flight information inq M:8 big en enthovenot cold w lar hud,mq 01X in jord is di Hal Unit 2: Letters, E-mails, & Text message chains 63

回答募集中 回答数: 0