How to Write a C program to find maximum or equal between two numbers ?
- /*Write a C program to find maximum or equal between two numbers */
- #include <stdio.h>
- int main ()
- {
- int a,b;
- printf("Find the maximum between two number: ");
- scanf("%d %d", &a, &b);
- if ( a > b ){
- printf("Minimum Number: %d\n",a);
- }
- if ( b > a ){
- printf("Maximum Number: %d\n",b);
- }
- if ( a == b ){
- printf("Number is equal");
- }
- return 0;
- }