Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)

Paste

Pasted as C by james ( 15 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
Your Name: Code Language: