Skip to content

@JPalounek /ivt-reseni
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ivt-reseni
#include <stdlib.h>
#include <stdio.h>
int main() {
float pole[30];
float pom;
FILE *fr;
fr = fopen("vstup.txt", "r");
for (int i = 0; i < 30; i++) {
fscanf(fr, "%f", &pole[i]);
}
fclose(fr);
for(int i = 15; i < 15; i++) {
pom = pole[i];
pole[i] = pole[30 - i];
pole[30 - i] = pom;
}
for (int i = 0; i < 30; i++) {
printf("%f\n", pom[i]);
}
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.