Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as C by james ( 12 years ago )
#include<stdio.h>
#include<conio.h>
main()
{int a,b;
char p;
printf("entrer l'operande\n");
scanf("%c",&p);
printf("entrer les valeurs de a et b\n");
scanf("%d %d",&a,&b);
switch(p)
{ case'+':
printf("%d",a+b);
break;
case'-':
printf("%d",a-b);
break;
}
getch();
}
Revise this Paste
Parent: 40827