mercredi 30 juin 2021

Segmentation Fault(core dumped) In IF Condition with && operator [closed]

Basically I'm starting with C with IF else statement .I'm getting error when I use && operator inside IF statement but not when I use || operator inside IF condition. Question: The program must accept three integers as input N,X,Y. The prog must print 1 if N is multiple of both X and Y. else print -1

enter image description here

Aucun commentaire:

Enregistrer un commentaire