Feed Headline Animator

Display the smallest Number And Position

main()
{
int t[10],sam,I,p=0;
for(i=0;i<=9;i++);
{
printf(“Enter numbers\n”);
scanf(“%d”,&t[i]);
}
sam =t[10];
for(i=0;i<=9;i++);
{
if(sam>t[i] )
{
sam=t[i];
p=++I;
}
printf(“smallest = %d/t %d”,sam,p);
getch();
}


Posted by: Wasim Javed

No comments:

Post a Comment