Transférer les fichiers vers 'TP2'
This commit is contained in:
parent
e8548a6d7e
commit
ec82c21075
|
@ -0,0 +1,19 @@
|
|||
#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;
|
||||
}
|
Loading…
Reference in New Issue