20 lines
390 B
C
20 lines
390 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main () {
|
||
|
int a = 5, b=10;
|
||
|
/********************************/
|
||
|
/* avec une variable auxiliaire */
|
||
|
/********************************/
|
||
|
int aux=a;
|
||
|
a=b;
|
||
|
b=aux;
|
||
|
/********************************/
|
||
|
/* sans variable auxiliaire */
|
||
|
/********************************/
|
||
|
a = 5, b=10;
|
||
|
a=a+b;
|
||
|
b=a-b;
|
||
|
a=a-b;
|
||
|
return 1;
|
||
|
}
|