#include <stdio.h>

int a,b,temp; 

void main() {
    a=5;
    b=3;

    temp=a;
    a=b;
    b=temp;
    
    printf("a = %d\n", a);   //per scambiare tra di loro le variabili serve una terza variabile diversa
    printf("b = %d", b);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: