Answers for "compare two integers in c"

C
0

compare two integers in c

#include <stdio.h>


int main() {
   int a, b;
 printf("Enter number a : ");
    scanf("%d", &a); 
 printf("Enter number b : ");
    scanf("%d", &b); 

   if(a > b)
      printf("a is greater than b");
   else
      printf("a is not greater than b");

   return 0;
}
Posted by: Guest on June-12-2021

Code answers related to "C"

Browse Popular Code Answers by Language