Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/old/old/
Upload File :
Current File : /var/www/html/venkat/old/old/lit2015044_4.c

#include<stdio.h>
int pass(int*,int);

int main()
{
 int k, a[100],row,i,j;
 
 printf("enter the numbers and column\n");
 scanf("%d",&row);
 printf("enter the elements");
 for(i=0;i<row;i++)
  {
        scanf(" %d",&a[i]);
     
  }
 k= pass(a,row);
 printf("the maximum value is %d",k);
   

 return 0; 
}
int pass(int*q,int r)
{
 int i,j, max=0;
 for(i=0;i<r;i++)
 {
   
     if(q[i]>max)
      {
         max = q[i];
      }
 }
 
 return max;
}