Write a Program to check the greatest number in C Programming

Hello, all

Here i have shared you the way to find the greatest number among two numbers.

so here is the code

#include<stdio.h>
void main(){
int a,b;
printf("Enter Two Numbers");
scanf("%d%d",&a,&b);
if(a>b){
    printf("%d is grater than %d",a,b);
}else{
 printf("%d is grater than %d",b,a);
}

}

 

if you are happy with this post feel free to comment and share!

Thanks : CoderPradip

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.