#include<stdio.h> int main() { int n=99,a[5],max,i; printf("Enter 5 Values :"); for(i=0;i<=4;i++) { scanf("\n%d",&a[i]); } max=a[0]; for(i=1;i<=4;i++) { if(max<a[i]) { max=a[i]; } } printf("\nMaximum no is :%d\n",max); n=max; for(i=0;i<=4;i++) { printf("\n%d",a[i]); } return 0; }
max
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)