Check given number is greter or smaller in c Program

To check given number is small or big or How to check which number is big. chech given number is greter or smaller in c program. #include

 To check given number is small or big or How to check which number is big.


chech given number is greter or smaller in c program.

#include <stdio.h>

int main ()

{

       int m,n;

printf("Enter values of m&n:");

scanf("%d%d",&m,&n);

if (m>n)

    {

          printf("%d is grater than %d",m,n);

    }

else if (m<n)

   {

  printf("%d is less than %d",m,n);

   }

else 

  {

      printf("%d is equel to %d",m,n);

  }

return 0;

}




d


Getting Info...

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Contact Us