Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #include <stdlib.h> #include <stdio.h> main () { char a,b; printf("entrer les deux signe"); scanf("%c%c",&a,&b); if (a!="+")||(a!="-")||(b!="+")||(b!="-") printf("incorect"); else {if (a==b) printf ("le produit est positif"); else printf("le produit est negatif"); } }
[Warning] comparison between pointer and integer
[Error] expected expression before '||' token
Partager