25. C Program To Find Smallest Number From The Given Two Numbers.
How does this program work?
- In This program you are going to learn about how to check a given number is even or odd using C language.
- The folowing code contains the logic to check number the given number is even or odd.
Here is the code
#include <stdio.h>
int main(void)
{
int number1,number2;
printf("Enter Two numbers \n");
scanf("%d%d", &number1,&number2);
if (number1< number2)
printf("%d is a small number\n", number1);
else
printf("%d is a small number\n", number2);
return 0;
}