I have a better idea. You prove that you've tried to solve these problems on your own, and we'll help you with any errors. No one is going to do your homework for you.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
oh sure !! i can help you out.Here are the codes
1. Finding Maximum and minimum values in a array
# include
# define MAX 10
void main()
{ int a[MAX],i,mini,maxi;
for(i=0;imax)
maxi = a[i];
if(a[i]" to "<" in the code.rest all wil remain as it is .
# include
# define MAX 10
void main()
{ int a[MAX],i,j,temp;
for(i=0;ia[j])
{ temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
printf("The sorted Array is : \n");
for(i=0;i
# include
# define MAX 10
void main()
{ long int a[MAX],fact[MAX],i,j;
int pro;
for(i=0;i
harshchandra
Junior Poster in Training
68 posts since Nov 2004
Reputation Points: 7
Solved Threads: 1