Computer Science, asked by rexina2418, 3 months ago

write a program to check entered number is greater than 18.4 or not

Answers

Answered by FabulousHarsh
2

#include <stdio.h>

#include <conio.h>

int main()

{

int number;

printf("Please enter a number: ");

scanf("%d", &number);

if (number < 18.4)

{

printf("Number is less than 18.4!\n");

}

else if (number == 18.4)

{

printf("Number is 18.4!!\n");

}

else

{

printf("Number is greater than 18.4!\n");

}

return 0;

}

Similar questions