Feed Headline Animator

Display the Largest number and position

main()
{
int l[10], lg, ps =1;
for(i=0 ;i<=9;i++)
{
printf(“Enter number\n”);
scanf(“%d”,&l[i] );
}
lg=l[1];
for(i=2; i<=9 ;i++);
}
if(lg{
if (lg=l[i];
ps= I;
}
printf(“largest No =%d/t\n”, lg);
printf(“position of numbers =%d\n”,ps);
getch();
}


Posted by: Wasim Javed

No comments:

Post a Comment