Comment écrire avec switch , le code :
Int a,b;
If(a=1)b=10;else b=-10;
If(a=2)b=20; else b=-20;
If(a=3)b=30; else b= -30;
.....
If(a=10) b=100; else b=-100;