Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include <stdio.h>
- int main()
- {
- int i;
- float max, tab[10];
- printf("program calcualting the maximum numer\n");
- for (i = 0; i < 10; i++)
- {
- printf(" enter number %d :\n", i+1);
- scanf("%f", &tab[i]);
- }
- max = tab[0];
- for (i = 0; i < 10; i++)
- if(tab[i]>max) max = tab[i];
- printf(" The maximum number equals %10.5f\n", max);
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement