Computer Science, asked by vishnupriya68, 11 months ago

to find the greatest num in c program syntax​

Answers

Answered by amanpathak8833
0

Answer:

#include <stdio.h>

#include <conio.h>

void main ()

{

int A [100],i,n,max;

clrscr ();

printf ("enter the value of n\n");

{

scanf ("%d",&n);

}

printf (" enter the value of an array\n");

for (i=0;i <n;i++)

{

scanf ("%d",&A [i]);

}

max=A [0];

for (i=0;i <n;i++)

{

if (max <A [i])

{

max=A [i];

}

}

printf ("Maximum value is %d",max);

getch ();

}

if it will help you

then don't forget to mark my answer as branliest answer

have a gud day

Similar questions