Welcome to the World of Online Learning:
Hello Friends “This blog helps you to learn C programming concepts. You can learn C language at your own speed and time. One can learn concepts of C language by practicing various programs given on various pages of this blog. Enjoy the power of Self-learning using the Internet.”

Write a C program to Maximum value of Array
PROGRAM: Maximum value of Array
/* Maximum value of Array */
#include<stdio.h>
int main()
{
int arr[10],i,max=0;
printf("Please enter 10 values:\n");
for(i=0;i<10;i++)
scanf("%d",&arr[i]);
max=arr[0];
for(i=1;i<10;i++)
{
if(max<arr[i])
max=arr[i];
}
printf("Maximum value of Array: %d",max);
return 0;
}