Write a program to get input from user and print the multiplication table of that number....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to get input from user and print the multiplication table of that number. The example of the table is as followed. If your input value is "1", then generate the table of that whole row 1-1-1 1-2-2 1-3-3 1-4-4 1-5-5 1-6-6 1-7-2 1-8-8 1-9-9 2-1-2 2-2-4 2-3-6 2-4-8 2-5-18 2-6-12 2-7-14 2-8-16 2-9-18 3-1-3 3-2-6 3*3-9 3-4-12 3*5-15 3-6-18 3-7-21 3-8-24 3*9-27 4-1-4 4-2-8 4-3-12 4-4-16 4-5-28 4-6-24 4-7-28 4-8-32 4-9-36 5-1-5 5-2-10 5-3-15 5-4-20 5-5-25 5-6-38 57-35 5-8-48 5*9-45 6-1-6 6-2-12 6-3-18 6-4-24 6-5-38 6-6-36 6*7-42 6-8-48 6*9-54 7-1-7 7-2-11 7-3-21 7-4-28 7*5-35 7~6-42 7*7-49 7-8-56 2*9-63 8-1-8 8-2-16 8-3-24 8-4-32 8-5-48 8-6-48 8-7-56 8-8-64 8-9-72 9-2-18 9-1-9 9-9-81 9-3-27 9-1-36 9-5-45 9-6-54 9-7-63 9-8-72 Write a program to get input from user and print the multiplication table of that number. The example of the table is as followed. If your input value is "1", then generate the table of that whole row 1-1-1 1-2-2 1-3-3 1-4-4 1-5-5 1-6-6 1-7-2 1-8-8 1-9-9 2-1-2 2-2-4 2-3-6 2-4-8 2-5-18 2-6-12 2-7-14 2-8-16 2-9-18 3-1-3 3-2-6 3*3-9 3-4-12 3*5-15 3-6-18 3-7-21 3-8-24 3*9-27 4-1-4 4-2-8 4-3-12 4-4-16 4-5-28 4-6-24 4-7-28 4-8-32 4-9-36 5-1-5 5-2-10 5-3-15 5-4-20 5-5-25 5-6-38 57-35 5-8-48 5*9-45 6-1-6 6-2-12 6-3-18 6-4-24 6-5-38 6-6-36 6*7-42 6-8-48 6*9-54 7-1-7 7-2-11 7-3-21 7-4-28 7*5-35 7~6-42 7*7-49 7-8-56 2*9-63 8-1-8 8-2-16 8-3-24 8-4-32 8-5-48 8-6-48 8-7-56 8-8-64 8-9-72 9-2-18 9-1-9 9-9-81 9-3-27 9-1-36 9-5-45 9-6-54 9-7-63 9-8-72
Expert Answer:
Answer rating: 100% (QA)
5 2 C JS mainpy 4 5 6 7 8 9 10 Get input from user num intinputEnter a number Print the mu... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
The following information for Blossom Enterprises is given below: Assets and obligations Plan assets (at fair value) Accumulated benefit obligation Projected benefit obligation December 31, 2025...
-
1. Input One line with the country name followed by the capital. You may assume the capital city names may contain spaces but country names may not. Output A single line that prints out the...
-
1. Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1 and 0. There is no F+ or...
-
Examine the difficulty of adding a proposed lwi.drd, rsl, rs2 (Load With Increment) instruction to MIPS. Interpretation: Reg[rd] = Mem[Reg[rs1] + Reg[rs2]] 1. Which new functional blocks (if any) do...
-
Return to the RONA delivery truck example in Exhibit 10-5 on page 589. Suppose RONA sold the truck on December 31, 2016, for $31,000 cash, after using the truck for three full years. Amortization for...
-
Name each of the compounds below. Use cis / trans and/or E/Z designations, if appropriate, to designate stereochemistry a. b. c. Cl C=C H,C CH3 CH2CI H3C H3C H,C Cl
-
When a party may be compelled to defend an action in a particular court?
-
How would each of the following changes tend to affect aggregate payout ratios (that is, the average for all corporations), other things held constant? Explain your answers. a. An increase in the...
-
58. A ball with a mass of 0.5 kg is uniformly accelerated from rest at a rate of 1.7 m/s. What is the kinetic energy of the ball after it has accelerated a distance of 12 metres?
-
Table 1: Calculation of 3 month forward rates using the simple interest rate parity principle (4 marks) Exchange rate Forward rate 3 months Workings (show calculations in this column) from now...
-
The average cost per patient of the standard option, Option I (self-care), was $130 every 6 months to visit the primary care provider (PCP). After 6 months, 55% of patients reported they felt they...
-
Given the following output. Please write a C++ code that can produce the object below. Hint: Please use FOR LOOP. Enter number of rows: 10
-
Suppose now that stocks in the XYZ Boat Company are available. These stocks are expected to pay a dividend of $ 7 . 0 0 per share next year. Thereafter, dividend growth is expected to be 5 percent a...
-
The intuitive learning materials worked with my investigation of Section 16, a pivotal segment that tends to different parts of agreement types in the Federal Acquisition Regulation (FAR). This...
-
Apply models and theories of leadership and management to educational settings, describing what this looks like for people, places and practices Trait theory, Socio-cultural theory, and...
-
a) Demonstrate with an example that under perfect market assumptions with no transactions costs or taxes that an equivalent (i) cash dividend and (ii) share repurchase, would leave an investor in the...
-
9. A statistical analysis of first year GPA's and SAT scores is taken by a university admissions office. The scatter diagram of the data is football shaped, i.e., assume that fitting a regression...
-
Extend Algorithms 3.4 and 3.5 to include as output the first and second derivatives of the spline at the nodes.
-
Karim Depak received a Form 1099-B showing the following stock transactions and basis during 2012: None of the stock is qualified small business stock. Calculate Karim's net capital gain or loss...
-
Ken paid the following amounts for interest during 2012: Qualified interest on home mortgage...........................................$4,700 Auto loan...
-
Yolanda is a cash basis taxpayer with the following transactions during the year: Cash received from sales of products........................................................................$65,000...
-
A scientist wants to determine whether people who live in places with high levels of air pollution get more colds than people in areas with little air pollution. Do you think it is possible to design...
-
Draw a simple random sample of eight animals from the list of 40 animals in the table. Exercises 2124 refer to the population of animals in the following table. The population is divided into four...
-
In the 1936 presidential election, Republican candidate Alf Landon challenged President Franklin Roosevelt. The Literary Digest magazine conducted a poll in which they mailed questionnaires to more...
Study smarter with the SolutionInn App