Commit 7c113206 by makuks

Upload New File

parent dc967f6a
Showing with 29 additions and 0 deletions
#include <stdio.h>
int main(){
int A[10];
int i;
i=0;
while (i<10){
scanf("%d", &A[i]);
i=i+1;
}
int maxValue;
maxValue=A[0];
i=0;
while (i<10){
if (A[i] > maxValue){
maxValue = A[i];
}else{
(i=i+1);
}
}
printf ("%d", maxValue);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment