a c program to check the greaster number among the two entered number using if else statement​

Answers

Answer 1

Answer:

#include <stdio.h>

int main(void) {

 int number1, number2;

 printf("Enter first number: ");

 scanf("%d", &number1);

 printf("Enter second number: ");

 scanf("%d", &number2);

 if (number1 > number2) {

   printf("%d is greater than %d!", number1, number2);

 } else if (number2 > number1) {

   printf("%d is greater than %d!", number2, number1);  

 } else {

   printf("%d is equal to %d!", number1, number2);

 }

}


Related Questions

Select all the correct answers.
Daniel is an app developer. He is working on an app for a retail store selling sports goods. The store manager explains that he would like customers to be alerted whenever there is a sale at the store. Interested customers would also be able to send an immediate response and book items they like from their mobile devices. Which statements about the use of the app are true?

It will make shopping easy.
It will enable quick transactions.
It will enable safety.
It will manage health.
It will save time.
Please I really need it because it will decides my grade.

Answers

Answer:

it will make shopping easy

Explanation:

The app will allow customers to shop with their phone instead of locating to the store. It also keeps the customers informed of events and sales for shopping.

the ratio of boys and girls is 4:5 calculate the number of boys if the are 1080 learners in schools​

Answers

Explanation:

The ratio of Boys =  4x

The ratio of  Girls =  5x

The Number of Boys in the School = 4x + 5x = 1080

                                                          =         9x = 1080

                                                          =           x  = 1080/9

                                                          =           x  = 120

The ratio of Boys = 4x  = 4 x 120 = 480

The ratio of  Girls =  5x = 5 x 120 = 600

Answer :-   The ratio of Boys =480

                 

Wiliam would like to sort a list of items after the data is already entered
Which method is NOT an available sort option?
number
date
text
symbol

Answers

Answer symbol

Explanation:

Symbol is not an available sort option.

What is the 3 common keys used to access the BIOS.​

Answers

Answer:

To access your BIOS, you'll need to press a key during the boot-up process. This key is often displayed during the boot process with a message “Press F2 to access BIOS”, “Press <DEL> to enter setup”, or something similar. Common keys you may need to press include Delete, F1, F2, and Escape.

What is the best way to beat someone on starve.io? with a lava sword, or a pirate sword.

Answers

Answer:

Lava sword all the way

Explanation:

fo sho

To keep your computer working efficiently, it is a good idea to _____ unnecessary files. delete defragment save archive

Answers

Hey the answer to this is delete or remove. because it is a good idea to remove old files that your not using.

Hope this helps

-scav

Que ventajas podria traer el internet a la educacion artistica? Ayuda porfa telo pido porfavor

Answers

Answer:

"Informacion"

Explanation:

La internet puede traer las mismas ventajas para la educacion artistica que cualquier otra materia y eso es "Informacion". El arte tiene muchas tecnicas. Tambien hay muchos differentes estilos de arte. La internet tiene toda la informacion sobre los artistas mas famosos de las historia, incluyendo su arte, tecnicas, estilos, temas, historias, etc. Esta informacion es sumamente importante y util por que te enseña a utilizar todos los metodos ya creados y usarlos como herramientas para crear arte que representa el artista que sos.

Write a loop that will take in 5 numbers from the user and output the average. Round your answer to two decimal places.
Sample Run:

Enter a number: 2
Enter a number: 7
Enter a number: 11
Enter a number: 4
Enter a number: 5
The average is 5.8

Hurry please!! will mark brainliest!!

Answers

I’m gonna do it in the form of a pseudocode.

Pseudocode 1: Number_Average
Declare sum, num, num_count, average
START
sum = 0
num_count = 0
average = 0
Display “Enter a number”
Read num
Display “Enter a number”
Read num
Display “Enter a number”
Read num
Display “Enter a number”
Read num
Display “Enter a number”
Read num
While(count = 5)
DO
num_count = 0+1
sum = 0+1
average = sum/5
ENDWHILE
STOP

Create a file name that to ensure the that the file is easy to find

Answers

Answer:

I always name mine something like HI

or YEET i dont know

why but it works

Explanation:

The File name would be : ABC!

Enumerate the steps on how to set-up the CD-ROM as the first boot device.​

Answers

Answer:

Explanation:

1)Press boot key ( Del or specified key)

to enter BIOS setup utility.

2) using the direction keys, make selection of "Advanced BIOS Features"

3)then access Advanced BIOS setting by pressing Enter key

4. Using up/ down arrow keys Select "First Boot

Device"

.

5) Using up and down keys, select "CD-ROM "

6. go back to "BIOS setting screen" by Pressing ESC key

7. Select " Save & Exit Setup"

.

Evaluate each condition as to whether it is true or not.
You can join the Army if you are over 17 and healthy. Have you met those requirements if you are 16 and healthy?
You can earn a scholarship if you have an ACT over 30 or you are valedictorian of your high school. Have you eamed a scholarship if you have an ACT
of 34 but are not the valedictorian?

Answers

Answer:

For the first one you have not met those requirements because you are still 16, for the second one you have met those requirements because you can either have a score over 30 (which you have 34) or be a valedictorian

Explanation:

Above

What is the name of tool

Answers

Answer:

bro the pic is hazy

Explanation:

but it is looking like octagon

hope it helps you

please mark me as brainlist

3 uses for a GPS system other than for a satellite navigation system

Answers

Answer:

Location – determining a position. Navigation getting from one location to another. Tracking – monitoring object or a personal movement. Mapping – creating maps of the world.

What is the difference, if any, between a social media strategist and a social media specialist?

A. They are very similar occupations, except that social media specialists tend to have more training.

B. A social media strategist determines how an organization will maintain a social media presence, and the specialist creates the content.

C. There is no difference—these are the same job with slightly different titles.

D. A social media specialist determines how an organization will maintain a social media presence, and the strategist creates the content.

Thank you!

Answers

The answer is D you welcome :D

A social media strategist is an expert who is involved in determining the presence of an organization over the social media; whereas, a specialist is involved in creating the content for social media.

What is social media?

The use of computer networks and internet for the purpose of sharing and expressing one's views with the connections over such platform is known as a social media.

A social media strategist, for an organization, will be involved in maintenance of the social media activeness of the organization; whereas, the content for such presence is in the hands of a specialist.

Hence, option B holds true regarding the roles of handling social media of an organization.

Learn more about social media here:

https://brainly.com/question/18958181

#SPJ2

Determine if true or false Goal Seek immediately attempts to apply the function to the adjacent cells.

Answers

Answer:

The answer is "False".

Explanation:

This function the part of Excel, that allows a way to resolve the desirable result by manipulating an underlying expectation. This function is also called What-if-Analysis, which is used to test, and an error approach to address the problem by linking guesses before the answer comes.  On the Data tab, throughout the Data Tool category, and select Target Check it provides a    reference that includes a formula to also be solved throughout the Set cell box.

PLS HELP ASAP suppose you want to find pages that contain the word German but not the word shepherd. which search would achieve this?
German OR shepherd
German- shepherd
"GERMAN shepherd"
"German"+"shepherd"

Answers

Answer: German- shepherd

Explanation:

If I want to find pages that contain the word German but not the word shepherd, the search would achieve this would be German- shepherd.

It should be noted that other options such as German OR shepherd, "GERMAN shepherd" and "German"+"shepherd" all mean that pages containing the words German and also shepherd will be found.

The (-) sign simply means that not. Therefore, the correct option is German - shepherd which means German but not shepherd.

Answer:

German- shepherd

Explanation:

What's wrong with these codes in code HS Karel challenges(7.1.2. Racing Karel) Codes: //Below is the program that have Karel move around the race track 8 times, and end in his starting location. Everytime Karel hits a corner, he will put a ball down. At the end there should be 8 balls on each corner. function start(){ for(var i = 0; i < 5; i++){ ballSet(); wallRun(); turnLeft(); } function wallRun(){ while(frontIsClear()){ move(); } } function ballSet(){ putBall(); } }

Answers

Answer:

The program only runs 5 five since the for loop statement is limited to loop only five times.

Explanation:

In programming, a for-loop statement is used to repeat a collection of events a definite number of times. The number of loops is specified and compared with a variable to execute a block of code.

The for-loop statement in the code above declares and initializes a variable "i" to zero, runs the block of code, and increments by one if it is less than 5.

To make it run eight times, the value five should be changed to 8 instead.

Answer: you have to change the 5 to 8 since its telling you to do it 8 times

Explanation: for(var i = 0; i < 5; i++) should be for(var i = 0; i < 8; i++)

A loan of $12000 was borrowed from the bank at 14% per annum calculate the interest on the loan at the end of the first year ?​

Answers

Answer:

lmasjsjsjssjjssjjssjsjjsksakkalaaooaa

Loan borrowed = $12,000

Percentage of interest on the loan per annum = 14%

We know that :

[tex]\color{hotpink}\tt \: Simple \: interest = \color{plum}\frac{principal \times rate \times time}{100} [/tex]

In this case :

principal = $12000rate = 14%time = 1 year

Simple interest at the end of the first year :

[tex] = \tt \frac{12000 \times 14 \times 1}{100} [/tex]

[tex] = \tt \frac{168000}{100} [/tex]

[tex]\color{plum}\tt = \$1680[/tex]

Thus, interest = $1680

Therefore, total interest on the loan at the end of one year = $1680

Reading a news release about a product is an example of
research.

Answers

Answer:

Yes, it is true, because it informs you

Explanation:

___________ is a computer programming language.

Answers

Python!!! I hope that helped!!
Pascal, c+, c++ etc

Find the cost of 2m 20cm at 25p per metre​

Answers

Answer: 55 meters.

Explanation:

First convert the 20 cm to meters so the entire number is in meters.

1 meter = 100 cm

20 in cm is:

= 20/100

= 0.2 meters.

2.2 meters.

One meter costs 25p so 2.2 meters will cost:

= 2.2 * 25

= 55 meters

Write a program to allow user to perform any of these list operation given in a menu. The menu is: a) Append an element b) Insert an element c) Modify an existing element d) Delete an existing element with a given value e) Sort the list in descending order f) Display the list.

Answers

Answer:

c

Explanation:

What type of device is a keyboard?

Input
Memory
Output
Storage

Answers

Answer:

a keyboard is an input device

it's an input

Explanation:

There are three different types of peripherals: Input, used to interact with, or send data to the computer (mouse, keyboards, etc.) Output, which provides output to the user from the computer (monitors, printers, etc.) Storage, which stores data processed by the computer (hard drives, flash drives, etc.)

Need help ASAP

Thankss + BRAINLIST only for correct answers

Answers

Why visit it?
For entertainment, purely for the user to enjoy the content that has been produced for them.

Why was it made?
Netflix is a subscription based service that has been made to allow users to stream TV shows and other entertainment sources. It was made for leisure.

Which option is the default when creating appointments and meetings in a user’s own calendar as it relates to Free/Busy information that others will see when looking at the user’s calendar?

a. Free
b. Working Elsewhere
c. Busy
d. Tentative
I only have 10 minutes left so please help fast!

Answers

Answer:

C !

Explanation:

Answer:

Busy

Explanation:

You can use this keyboard shortcut to toggle the visibility of the command line. If for some reason your command line is hidden from the drawing area, then use this keyboard shortcut to bring it back *

Answers

Answer:

Ctrl + 9

Explanation:

You can use this keyboard shortcut to toggle the visibility of the command line

How can identity theft be prevented?

Answers

Answer:

Identity theft can be prevented by using proper security measures

Explanation:

Identity theft can be prevented by using proper security measures such as stronger passwords and VPN. It can also be protected by making sure your system security is up to date.


1. Light of wavelength 900x10-9 m is emitted by a source. What is its frequency?​

Answers

therefore the frequency = 6×10^14

The frequency of the light is "[tex]6\times 10^{14}[/tex]".

Given values:

Wavelength,

[tex]\lambda = 900\times 10^{-9} \ m[/tex]

As we know the formula,

→ [tex]Frequency = \frac{C}{\lambda}[/tex]

By substituting the values, we get

→                   [tex]= \frac{3\times 10^8}{900\times 10^{-9}}[/tex]

→                   [tex]= \frac{10^8}{300\times 10^{-9}}[/tex]

→                   [tex]= 6\times 10^{14}[/tex]

Thus the above response is correct.  

Learn more about frequency here:

https://brainly.com/question/14459326

Write a definition in your own words for Raster Graphic. Do not copy and paste please.

Answers

Answer:

Raster Graphic is a bitmap. They are basically a grid of small pixels that make an image.

what are the two types of commennts of java​

Answers

Answer:

Do you mean components??

Explanation:

If yes then then,

The components are

1. The java Virtual machine.

2.The java application programming interface

Other Questions
can someone help me with a two step equation that is x=3 please its for a math project Which statement about natural resources is true? A. All societies have the same natural resources available to them.B. Societies have found alternatives for them, so natural resources have lost all their importance. C. Some societies find natural resources important, while others find no need for them. D. While all societies use natural resources, they do not use them in the same way. What mass of MnCl2 is produced when 0.091 g of Cl2 is generated? solve the 6 linear equations -(x+2)=2(3x-6) List the first five prime numbers PLS SHOW HOW YOU SOLVED THE PROBLEM 15. The perimeter of an isosceles triangle is 34 inches. When you add the base of thetriangle to one of the equal sides the sum is 18. What is the length of the base of thetriangle?a)2 inchesgo to card 3b) 14 inchesgo to card 6c) 9 inchesgo to card 9d) 16 inchesgo to card 11e) 4 inchesgo to card 13 DNA sequences can act as "tape measures of evolution." Some highly-conserved regions of the human genome (similar to comparable regions in other species) don't code for proteins. Why? 1. Such regions coded for proteins in genomes of distant human ancestors, but over time they became noncoding; however, conserving their sequence remained unchanged.2. Such regions play a significant role in gene regulation. That is why they remain conservative under the influence of natural selection.3. Such regions are the sites of DNA recombination. They should remain conservative to provide an accurate recombination process during cell division.4. Such regions remain conservative because the mutation rate differs along the genome. In other words, such regions remain conservative accidentally. 1: active or passive? Watercolors had been used by the illustrator. 2: active or passive? Lucinda had planted those marigolds. The word part stasis is best defined as Due Tuesday Write the name of the root tissue on the corresponding line. What are the two ways root cells grow? b. Proposez une explication possible l'volution del'ge moyen des premires rgles au cours du temps. Solving Distributive Property Equations,1. 2(x + 5) = 16 2. 3(t + 1) = 18 3. 3(x + 7) = 15 4. 2(3y 5) = 145. 2(3x + 1) = 8 6. 4(3y 2) = 88 7. 6(3k + 5) = 39 8. 9(3x 5) = 9 8. 9(3x 5) = 9 5m - 4z + 8m + 3 2z Need help please i got 200 point in the bag yeart plzz plzz plzz helpWhat was a result of the Union blockade on Texas?Churches donated clothing and dishesPeople had to produce their own goods.Demand for imported products decreased. Shipping businesses moved to Galveston Rashaad went to the store to buy some apples. The price per pound of the apples is $4.75 per pound and he has a coupon for $2.50 off the final amount. With the coupon, how much would Rashaad have to pay to buy 5 pounds of apples? Also, write an expression for the cost to buy pp pounds of apples, assuming at least one pound is purchased. I have to turn this in at 5:00 10. A change inindicates the acceleration of an objectO A the time of travelOB the distance from a given pointO c displacementOD velocity Find the geometric mean of the numbers. If necessary, give the answer in simplest radical form.25 and 29The geometric mean is How might William Shakespeare have influenced other writers who came after him? Give specific examples.