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
Aloiza [94]
3 years ago
12

Write a do-while loop that asks the user to enter two numbers. the numbers should be added and the sum displayed. Then the user

should be asked if he or she wishes to perform the operations again.
Computers and Technology
1 answer:
vovikov84 [41]3 years ago
3 0

Answer:

int i,j,k;

do{

   scanf("%d %d",&i,&j);

   k=i+j;

   printf("%d",k);

   scanf("%d",&k);

   }while(k==1);

Explanation:

First we initialize the 3 integers variables i,j,k

The loop starts

and we take input of numbers to be added into i and j

k stores the sum and prints it

Then we take an input of 0 (or) 1

0 indicates the user does not wish to perform the operation again

1 indicates the user wishes to perform the operation again

You might be interested in
CAN SOMEONE PLEASE HELP ME WITH THIS PLEASE ?!!!!!!!!
kherson [118]
Get feedback about your product from the restaurant
7 0
3 years ago
Is the ability to choose the start and finish times, but they must complete a full day’s work
Hatshy [7]
Yes ma’am , can of spam. what she said up there ^*
4 0
3 years ago
What, if anything, is returned by the method call rearrange ("apple")?
Otrada [13]

Answer:

\boxed{E} \to  \boxed{nothing \: is \: returned \: due \: to \: run \: tie \: error}

7 0
3 years ago
What is required to create a game?
Y_Kistochka [10]

Answer: C. competition

Explanation:

6 0
2 years ago
You suspect the hard drive is corrupted. Which window do you open to repair the drive?
vodomira [7]

Answer:

hi!

Explanation:

These are the steps that must be followed to repair the damaged hard drive without formatting and recovering the data:

Step 1: Run Antivirus Scan. Connect the hard drive to a Windows PC and use a reliable antivirus/malware tool to scan the drive or the system.  

Step 2: Run CHKDSK Scan.

Step 3: Run SFC Scan.

Step 4: Use a Data Recovery Tool.

4 0
3 years ago
Other questions:
  • Annabeth has been using a public cloud to store and access her documents. Which drawback of a public cloud should she be aware o
    11·1 answer
  • A(n) _____ is a simple database program whose records have no relationship to one another.
    10·1 answer
  • What are the main types of software? Explain with appropriate examplesWhat are the main types of software? Explain with appropri
    12·2 answers
  • 12. Which of the following is a complex formula?
    13·2 answers
  • What are the two main objectives associated with data mining? uncovering competitors and market advantages uncovering tactics an
    15·1 answer
  • Write a program to print the area of a rectangle by creating a class named 'Area' having two methods. First method named as 'set
    6·1 answer
  • 4.2 Code Practice: Question 2​
    14·1 answer
  • All the following are the basis of the World Wide Web except:
    14·2 answers
  • (a) How many copies of the book titled "The Lost Tribe" are owned by the library branch whose name is "Sharpstown"? (b) How many
    10·1 answer
  • What is stored in studentScores after running the program code?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!