Source
Code:
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,d,e,s;
printf("\n enter the five
numbers:");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
s=a;
if(s>b)
s=b;
else if(s>c)
s=c;
else if(s>d)
s=d;
else if(s>e)
s=e;
printf("\n the smallest number
is:%d",s);
getch();
return 0;
}
No comments:
Post a Comment