vendredi 21 mai 2021

Why this code is not working (if-statement)

Why "if" is not accepting the condition (both "x" and "n" are constants after all).

#include <stdio.h>
int main(){
int x,n;
scanf("%d %d",&x,&n)
if(x==(4n-3))
printf("%d",x);
return 0;
}

Aucun commentaire:

Enregistrer un commentaire