Untitled
unknown
c_cpp
4 months ago
492 B
2
Indexable
// Online C compiler to run C program online #include <stdio.h> int main() { int numeri[] = {11,44,3,21,33,64,11,21}; for(int i=0; i<8; i++) { printf("\n%d", numeri[i]); } for(int i=0; i<8/2; i++) { int x = numeri[i]; numeri[i] = numeri[7-i]; numeri[7-i] = x; } printf("\nDopo aver invertito.."); for(int i=0; i<8; i++) { printf("\n%d", numeri[i]); } return 0; }
Editor is loading...
Leave a Comment