Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/venkat/old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/venkat/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;
}

 

ZeroDay Forums Mini