#include <stdio.h>void main(){ int a; printf("%s",(a%2==0)?(a%3==0)?"2and3":"2not3":(a%3==0)?"3not2":"none",scanf("%d",&a));}
Try this one .