1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GREYUIT [131]
3 years ago
12

Get two positive integers from the user. Write code to multiply the two numbers together using only addition or subtraction. You

should not use the '*' operator. Remember that x*y is simply x+x+x+...+x, y times. You may use eitnher a for loop or a while loop
Computers and Technology
1 answer:
padilas [110]3 years ago
8 0

Answer:

number1 = int(input("Enter the first number: "))

number2 = int(input("Enter the second number: "))

result = 0

for i in range(number1):

   result += number2

print(str(result))

Explanation:

Ask the user for two numbers

Initialize result as 0 to hold the multiplication of the numbers

Create a for loop that iterates "number1" times. In each iteration, add number2 to the result.

When the loop is done, print the result

You might be interested in
1) ( IBADE - 2020)A legislação que regula o uso da Internet no Brasil por meio da previsão de princípios, garantias, direitos e
VARVARA [1.3K]
C) Lei da Regulação Digital :)
6 0
2 years ago
What type of device is the printer?
ICE Princess25 [194]

B,the printer only receives signals from the computer and prints them.

4 0
3 years ago
Read 2 more answers
Write a program great_circle.python that takes four float arguments x1 y1 x2 y2
svlad2 [7]

Answer:

897893+ 892e98374))8qwye932__8730140923(7834983(8974+9)9903)

Explanation:

IT IS SIMPLE MY FRIEND

spanish conquistadors, who were primarily poor nobles from the impoverished west and south of Spain, were able to conquer the huge empires of the New World with the help of superior military technology, disease (which weakened indigenous resistance), and military tactics including surprise attacks and powerful and there were no strangers to love and they knew the rules and so did i they just wanted to tell people how the were feeling and they wanted someone to understand so they were never gonna give you up and they were never gonna let them down and they were never gonna turn around and hurt other people in the army they were never gonna make the soldiers cry and they never were going to say goodbye but the years stop comming and they dont stop comming head to the rules gotta keep the groud running but Remember those walls I built Well, baby, they're tumbling down And they didn't even put up a fight They didn't even make a sound I found a way to let you win But I never really had a doubt Standing in the light of your halo I got my angel now It's like I've been awakened Every rule I had you breaking It's the risk that I'm taking I ain't never gonna shut you out Everywhere I'm looking now I'm surrounded by your embrace BabPatrician. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.y, I can see your halo You know you're my saving grace You're everything I need and morei t's written all over your face Baby, I can feel your halo Pray it won't fade away  Hit me like a ray of sun Burning through my darkest night I'm boutta' pop,  you know I'm boutta' blow up Only need these hands I don't need no  pole Once I get a grip, I might blast yo  dome up Like I'm Bakugo, turn they soul to  smokei 'm boutta' pop,  you know I'm boutta' blow up Only need these hands, I don't need no ' pole Once I get a grip, I might blast yo dome up Why you packin', you ain't bout' that action I'll blow her back in Why you mad but not attackin' boy I'll send you packin' I'm the best, no doubt about it Competition live without it You just mad cause I'm too rowdy get back I'm really bout it Head down on the ground, you don't want these hands around you Nitroglycerin I'm sweatin', blastin' off I'm bound to Rushin', there ain't no hiding yous a  if you down to If you try to hide you gon' be begging once I've found you I'm the best, ain't no hero but always been vet if you got an issue, AP shots up to yo neck I don't give a  about no one, I'll say it no regrets I'm only here for me, I'm at the top and you'll respect Grenadier bracers on my wrist, I'm about to pull the pin Come at me with all your might or I'ma melt off all your skin Howitzer impact  ,  I told you I'ma win get back before I blast, I said I'll do it again wit' a grin Like I'm Bakugo, turn they soul to ' smoke I'm boutta' pop,  you know I'm boutta' blow up Only need these hands I don't need no  pole Once I get a grip, I might blast yo  dome up and  I want Think I'm addicted to your light  swore I'd never fall again But this don't even feel like falling Gravity can't forget To pull me back to the ground again Patric Patrician. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.ian. sorry teacher but i am gay They also needed to pack it box it flip it top it wit a bowtie ribbion stop it because there dogs were eating all the rainbow cookies and pies were filying through the roof. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.

6 0
3 years ago
Which of the following is NOT a rule you should follow when creating a presentation?
Nataly_w [17]
False, Write in full sentences and paragraphs on your slides - It is your presentation! Make it how you want to 
8 0
3 years ago
i was playing a mobile game and I was a guild leader in there. one of the members were very disrespectful and they just left bec
Sonbull [250]

Answer:

which mobile game? Whatever the worst thing you can do is. If its slurs and harassment or bullying report them

Explanation:

3 0
2 years ago
Read 2 more answers
Other questions:
  • A device that makes it possible for multiple customers to share one address is called a/n _____.
    8·1 answer
  • What does CPL stand for
    9·2 answers
  • Peter has a website that promotes his local vacation rental site. He uses Google Ads to manage his advertising campaign. He’s cr
    13·1 answer
  • Using 2 bytes, how many different characters can Unicode represent?
    14·1 answer
  • Which field of study would be most useful for a person who wants to work in a recycling plant?
    12·2 answers
  • Hard light is usually not good for filming. True False
    11·2 answers
  • I used the app and my answers were still wrong??????how
    8·2 answers
  • Mississippi law codes state that bullying and cyberbullying are against the law. A court can decide to incur ___________________
    10·1 answer
  • Can someone send me reference on communication, importance , communication cycle , pros and cos​
    15·1 answer
  • Blockchain is often associated with Bitcoin and the financial services industry. However, it is applicable to almost every indus
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!