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
Grace [21]
4 years ago
8

Print 'userNum1 is negative" if userNum1 is less than 0. End with newline Convert userNum2 to 0 if userNum2 is greater than 9. O

therwise, print "userNum2 is less than or equal to 9:. End with newline 3 int main(void) 4 int userNuml; S int userNum2; 6 7 userNum1-1; 8 userNum2 7 10 if (userNum1) printf "userNum1 is negative.n 12 13 if(userNum2-9 14 15 16 17 print f("userNum2 18 19 return ; printf("userNum2 is less than or equal to 9.\n; Your solution goes here is%d.\n", use rNur?); 20 Check Try again x A possible solution uses an if statement for userNum1, and an if-else statement for userNum2 x Testing for correct output for userNum 1 = 0 and userNum2 = 10 Output differs.
Computers and Technology
1 answer:
dlinn [17]4 years ago
8 0

Answer:

#include <stdio.h>

int main()

{

   int userNum1;

   int userNum2;

   

   userNum1 = -1;

   userNum2 = 7;

   

   if (userNum1 < 0)

       printf("userNum1 is negative. \n");

       

   if(userNum2 > 9)

       userNum2 = 0;

   else

       printf("userNum2 is less than or equal to 9.\n");

   return 0;

}

Explanation:  

Initialize userNum1 and userNum2.

If userNum1 is less than 0, print 'userNum1 is negative" and end with newline.

if userNum2 is greater than 9, assign 0 to userNum2.

Otherwise, print "userNum2 is less than or equal to 9 and end with newline.

You might be interested in
A software programâs _________ indicates what can legally be done with that program.]
xxMikexx [17]
A software license indicates what can be done with that program, in terms of its use, modification and distribution.

For example, Linux has a software license that allows users to modify and even distribute the operating system. It is open source.
7 0
4 years ago
What is the danger of open-source software when it comes to military robotics?
Murljashka [212]

Answer:

The issue with open source software is that it is usable (and editable) by anyone. When it comes to military robotics, the software that is used to run the robots must remain confidential. If it is not, anyone could take the software that the military is using to make their robots function and replicate it, which could be extremely dangerous.

Explanation:

Open source software is available to the general public.

Feel free to copy and paste this or put it into your own wording. Have a nice day!

4 0
3 years ago
What is the Keyboard shortcut to change the case of selected text?
kogti [31]

Answer:

Select the text and then press Shift + F3 until the case you want is applied.

5 0
3 years ago
Help me guys..<br>thankyou​
Rainbow [258]

Answer:

spoon

excess

level

1/2 cup

whatever dry ingredient u have

Explanation:

7 0
3 years ago
We are committed to creating and cultivating a graduate and postdoctoral community that values and respects individuals, regardl
kykrilka [37]

Answer:

I will contribute to enhance the academic, cultural, and intellectual environment for graduate students and postdoctoral at the University of Connecticut in the following ways:

  • Participating in events.
  • Establishing importance for cultural environment.
  • Informing people by conducting social seminars.
  • Picturing the benefits of academic environment.

Explanation:

Following is the explanation for each of the steps stated above.

      1. Participating in events:

                       All students must be guided to participate and perform in the events conducted. These guidelines should be made mandatory for each pupil to follow so that they may be aware of benefits of the events by being social.

      2. Establishing importance for cultural environment:

                   Cultural festivals should be arranged by the universities so that the importance of such events could be realized by the students. Rules and regulation must be followed by each student so that a cultural environment may be established.

      3. Informing people by conducting social seminars:

                  Introductory seminars play an important role in changing the minds and thoughts of the students and social members. So in order to make society a best place it is necessary to make people aware of morals of society. Therefore conducting seminars is a key to good moral awareness.

       4. Picturing the benefits of academic environment:

                      Each student must know about the benefits of keeping interests in academic. In order to built an academic environment among the universities it is better to picture the future aspects and benefits o such interests so that the pupils keep believe on the academic interests by heart.

<h3>I hope it will help you!</h3>

                       

3 0
4 years ago
Other questions:
  • You've been asked to find the average of a range of numbers. Which of the following could you use to find the average of cells A
    9·1 answer
  • The encapsulation unit on the data link layer of the osi model is _________
    10·1 answer
  • The destructor automatically executes when the class object goes out of ____.
    12·1 answer
  • Does anyone know what type of Honda this is and the year of it lol this isn’t school related
    10·1 answer
  • In an e-credit card transaction the clearinghouse plays the following role:
    6·2 answers
  • Programmers refer to programs that contain meaningful names as ____. AnswerThe answer is: Programmers refer to programs that con
    12·1 answer
  • Which of the following STEM discoverers invented an application that uses summarization technology? Fedkiw Hawking D’Aloisio Gat
    7·1 answer
  • What is Adobe Dreamweaver ? What is it used for ? Name and describe its major components and features in detail​
    15·1 answer
  • Tools used to type text on Ms -paint​
    10·1 answer
  • WRITE A PROGRAM TO CALCULATE SIMPLE INTEREST
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!