write the logic using if statement to find the smallest of two numbers
Answers
Answered by
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
English,
3 months ago
English,
3 months ago
Social Sciences,
6 months ago
Computer Science,
6 months ago
Math,
11 months ago
History,
11 months ago