i input 10 integers and the program will find it's higest number and lowest number. i already have the code for inputting 10 integers and finding it's highest and lowest number but i dont know how to do this with array.
how can i insert array into my code?
this is the code:
main()
{
int myI;
int hi, low;
int i;
clrscr();
for(i=1; i<=10; i++)
{
printf("Enter integer #%d:",i); scanf("%d",&myI);
if(i==1)
{
hi=myI;
low=myI;
}
if(myI>hi)
{
hi=myI;
}
if(myI
{
low=myI;
}
}
printf("The highest integer is %d\n",hi);
printf("The lowest integer is %d\n",low);
getch();
}
thnx
2007-12-12
02:05:36
·
3 answers
·
asked by
Mikaela
1
with float elements belong the comments class on the page's left margin, width of element 180px, padding 5 px, text color white, font size 8pt.
I have...class.comments {font-family: arial, helvetica, sans-serif; font-color: white; font-size: 8pt; margin-left: 180px; padding: 5px}....the boder that I defined in the htm document as .comments {backgound-color: brown} the background color and the text all all the way across the page and not confined to the 180 px. What am I doing wrong????
2007-12-12 05:16:10 · 2 answers · asked by kook417 1