Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.

Friday, May 7, 2010

WAP check highest or lowest array element


/*WAP check highest or lowest array element*/

#include<stdio.h>
#include<conio.h>
void main()
{
int array[5],min,max,i;
clrscr();
printf("enter value of array");
for(i=1;i<=5;i++)
scanf("%d",&array[i]);
min=max=array[0];
for(i=1;i<=5;i++)
{
if(array[i]>min)
max=array[i];
else
if(array[i]<max)
min=array[i];
}
printf("\nhighest element is: %d\n",max);
printf("\nlowest element is: %d\n",min);
getch();
}

ADS

How to earn online

How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786

AddMe

Bookmark and Share