fork download
  1.  
  2. #include<stdio.h>
  3. #include<string.h>
  4. int main(){
  5. int n;
  6. char a[30]="the number is even";
  7. char b[30]="the number is odd";
  8. scanf("%d",&n);
  9. if(n%2==0){
  10. printf("%s",a);
  11. }
  12. else{
  13. printf("%s",b);
  14. }
  15. return 0;
  16.  
  17. }
Success #stdin #stdout 0s 5304KB
stdin
10
stdout
the number is even