#include<stdio.h>
      int main()
      {
          printf("\n\n\t\tStudytonight - Best place to learn\n\n\n");
          int x;
          for(x = 0; x <= 10; x++)
          {
              if(x&1) // if number is odd
                  printf("\t\t\t%d is odd\n",x);
              else if(!(x&1)) // ! is used inside if to reverse the boolean value
                  printf("\t\t\t%d is even\n",x);
          }
          printf("\n\n\n\n\t\t\tCoding is Fun !\n\n\n");
          return 0;
      }
      
      Apex language logo

      Operator

      0

      0

      avatar
      natalie19970

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.