waglekiran919
waglekiran919 waglekiran919
  • 18-02-2021
  • Computers and Technology
contestada

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

Respuesta :

tonb
tonb tonb
  • 18-02-2021

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);

 }

}

Answer Link

Otras preguntas

A government can be both a monarchy and an anarchy at the same time. True or False? And why?
I’m not sure of my answer this is Distance on coordinate plane (sorry if the graph a little messed up )
What must you assume when you use a rate to make a prediction?
70% of a number is 98. What is 90% of that same number? A. 63 B. 68.6 C. 88.2 D. 126
PLEASE I NEED A ANSWER!!!
explain how a swallow hole is formed
Could anyone solve this?? Make m the subject of the formula 6m²=k Anyone??
Some of the food you can taste on Margarita Island are _____. a.)mate y facturas b.)empanadas con carne mechada, queso o cazón c.)helado de coco en su propia co
Simplify this expression ((a^8a^9)^1/7)/a^2 The lesson this is from covers rational exponents if that helps.
At 1:00 p.m., you have 24 megabytes of a movie. At 1:15 p.m., you have 96 megabytes. What is the download rate in megabytes per minute?