Computer Science, asked by jaishreeanbu2007, 6 months ago

write the logic using if statement to find the smallest of two numbers ​

Answers

Answered by NirmitBaria
0

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

 int a,b;

 clrscr();

 printf("\n Enter any Two numbers\n");

 printf("\n Enter First Number : ");

 scanf("%d",&a);

 printf("\n Enter Second Number : ");

 scanf("%d",&b);

 if(a<b)   //logical test

  {

   printf("\n %d is Smaller",a);

  }

 else

  {

   printf("\n %d is Smaller",b);

  }

getch();

}

PLZ MARK ME AS BRAINLLEST!!

Similar questions