Use and
#include <stdio.h> int main() { int a, b; /* two integers */ a = 4; b = 2; if ((a != 0) && (b != 0)) printf("Both are not zero\n"); return (0); }