Write a program to find a given number is greater than 100 and less than 250 and divisible by 7.




#include <stdio.h>
void main ()
{
      int n;
      printf("enter number");
      scanf("%d", &n);
      if(n<250, n%7==0 , n>100){
      printf("correct");
      }
      else{
            printf("incorrect");
      }
     
}

Comments