Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char *argv[]){
- int n[10], max, x, y;
- for (x = 0; x < 10; x++)
- {
- printf("enter #%i = :", x);
- scanf("%d", &n[x]);
- max = n[x];
- }
- for (y = 0; y < 10; y++)
- {
- if (max < n[y])
- max = n[y];
- }
- printf("Max is %i\n", max);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment