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
lesya692 [45]
2 years ago
9

1.21 lab: divide by x write a program using integers user_num and x as input, and output user_num divided by x three times. ex:

if the input is:_________
Computers and Technology
1 answer:
ad-work [718]2 years ago
6 0

A program using integers user_num and x as input, and output user_num divided by x three times is given below:

<h3>The Program</h3>

#include <stdio.h>

int main(void) {

  int userNum;

  int x;

  int ans1;

  int ans2;

  int ans3;

 

  scanf("%d", &userNum);

  scanf("%d", &x);

 

  ans1 = userNum/x;

  ans2 = ans1/x;

  ans3 = ans2/x;

 

  printf("%d %d %d\n", ans1, ans2, ans3);

  return 0;

}

Read more about programming here:

brainly.com/question/23275071

#SPJ1

You might be interested in
How are appointments scheduled in medisoft
qaws [65]
Appointments scheduled in medisoft is based on how
•How quickly making, copying, or changing appointments
•Track treatment room schedules
•Instantaneously search all providers for next available time slot
•Add patients to an appointment wait list

4 0
4 years ago
How many report charts can be added to the account page layout to meet this requirement? A sales manager would like to look at a
Virty [35]

Answer:

D - 2

Explanation:

You can have two report charts per page. You can only add report charts from the enhanced page layout editor.

The mini console and the original page layout editor are not supported. On detail pages, users can refresh up to 100 report charts every 60 minutes. Your organization can refresh up to 3,000 report charts every 60 minutes

8 0
3 years ago
Which tag denotes the end of an element in HTML?
goldenfox [79]

Answer:

A. /

Explanation:

When creating a line in HTML, you start with a <ELEMENT> <em>ENTER TEXT</em> </ELEMENT>

Example:

<title> Mark me brainliest! <<u>/</u>title>

<u><em>Hope this helps!</em></u>

<em>-Isa</em>

7 0
3 years ago
Which of the following characteristics of an e-mail header should cause suspicion?A. Multiple recipientsB. No subject lineC. Unk
julsineya [31]

Answer:

The correct answer for the given question is option(b) i.e " No subject line"

Explanation:

In the e-mail subject is the important part which describe the information which kind of particular mail is send or received .if we do not give any subject line in the e-mail header then most of the chances that email will not read by recipients due to this suspicion will be caused.

Unknown Sender and Multiple recipients do not cause suspicion so the correct answer is option(b) i.e No subject line".

3 0
3 years ago
Assume that a function named swapdoubles has been defined and is available for use in this exercise: that function receives two
Nata [24]

Answer:

C++ Code:

void sort3(double &a, double &b, double &c)

{

   if(a > b)

       swapdoubles(a,b);

   if (b > c)

       swapdoubles(b,c);

   if (a > b)

       swapdoubles(a,b);

}

Explanation:

To change the values of a,b,c within the function, we pass the values by reference. Let us assume that number a = 3.14, b = 2.71, c = 3.04. Since a > b, values of a and b will be swapped.Now a = 2.71 and b = 3.14. Similariy, since b > c, they will be swapped. This way, we move the largest number to its correct position in the first two steps. If there are only three numbers, and the largest number is in its correct position, then for the two remaining numbers, we will only need atmost one swap to exchange their positions. hence, we perform a comparison of a > b once again to see if the b is smaller than a. if its not, then all a,b,c are in sorted order.

6 0
4 years ago
Other questions:
  • The email administrator has suggested that a technique called SPF should be deployed. What issue does this address?
    5·1 answer
  • "when a dynamic web page is requested, the web server passes the request to"
    15·1 answer
  • 1. Bones do not change position when the muscles contract and release.
    7·1 answer
  • has anyone noticed to get credit for answering a question you don't even need to answer it correctly?
    11·2 answers
  • What do you need to know when buying screws<br>​
    12·2 answers
  • What is the purpose of networking with other businesses?
    10·1 answer
  • You are having trouble cleaning your computer for a troublesome virus. you decide to try to clean your computer while in safe mo
    5·1 answer
  • In computer science how can you define "copyright, designs and patents act 1988"?​
    8·1 answer
  • Wake up to reality. Nothing ever goes as planned in this world. The longer you live,the more you realize that only pain, sufferi
    5·1 answer
  • Pls help due tonight<br>Will give brainiest
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!