#include<stdio.h> int main(void) { int i,mark,max,n; printf("Enter n:"); scanf("%d",&n); printf("Enter %d marks:",n); scanf("%d",&mark); max=mark; for(i=1;i<n;i++){ scanf("%d",&mark); if(max<mark) max=mark; } printf("Max=%d\n",max); return 0; }
haha1235 |
|
||
Copyright © 2024 haha1235
Powered by .NET 9.0 on Kubernetes |