#include<stdio.h>
      int a,b;
      int main()
      {
          printf("\n\n\t\tStudytonight - Best place to learn\n\n\n");
          printf("\n\nEnter the two values to find the greatest and smallest number: \n");
          scanf("%d%d", &a, &b);
          if(a == b)
              printf("Both are equal\n");
          else if(a < b)
          {
              printf("\n\nThe largest number is %03d\n", b);
              printf("\nThe smallest number is %03d\n", a);
              printf("\nThe largest number is %03d\n", b);
          }
          else    //Only possibility remaining
          {
              printf("The largest number is %03d\n", a);
              printf("The smallest number is %03d\n", b);
          }
          printf("\n\n\t\t\tCoding is Fun !\n\n\n");
          return 0;
      }
      
      C language logo

      Global Var

      0

      0

      avatar
      natalie19970

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.