Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main(){
- int i; float a[26], min, max;
- for (i = 0; i < 26; i++){
- printf("Enter a%i: ", i+1);
- scanf("%f", &a[i]);
- if (i = 0) {min = a[i]; max = a[i];}
- else {
- if (a[i] < min){min = a[i];}
- else if (a[i] > max){max = a[i];}
- }
- }
- for (i = 0; i < 26; j++){
- if (a[0] < 0){
- for (i = 0; i < 26; i++){
- a[i] = a[i] * pow(max, 2);
- }
- }
- else {
- for (i = 0; i < 26; i++){
- a[i] = a[i] * pow(min, 2);
- }
- }
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement