C Program to find smallest in three numbers

#include
void main()
{
 int a,b,c;
 printf("enter 1st no\n");
 scanf("%d",&a);
 printf("enter 2nd no\n");
 scanf("%d",&b);
 printf("enter 3rd no\n");
 scanf("%d",&c);
 a=a
 a=a
 printf("smallest no.is %d\n",a);
}


Output:
C Program to find smallest in three numbers using conditional operator
C Program to find smallest in three numbers C Program to find smallest in three numbers Reviewed by Prashant Sengar on December 23, 2017 Rating: 5

No comments:

Powered by Blogger.