das erste Programm habe ich jetzt mal gemacht:
#include <stdio.h>
int main(void) {
    int zahl1;
    int zahl2;
    int zahl3;
    int zahl4;
    int temp1;
    int temp2;
    
    
    printf("Geben Sie vier Zahlen ein: ");
    scanf("%d %d %d %d",&zahl1,&zahl2,&zahl3,&zahl4);
    temp1 = zahl1;
    temp2 = zahl2;
  
    zahl1 = zahl4;
    zahl2 = zahl3;
    zahl3 = temp2; 
    zahl4 = temp1; 
    printf("%d %d %d %d",zahl1,zahl2,zahl3,zahl4);
}