My issue
My code
#include <stdio.h>
#include <stdlib.h>
int main( void )
{
int a = 15;
int b = 35;
if ( ( ( a % 7 == 0 ) && ( a % 5 == 0 ) ) && ( ( b % 5 == 0 ) && ( b % 7 == 0 ) ) )
{
puts( "The number is divisible by both 5 & 7" );
}
else
{
puts( "The number is not divisible by both 5 & 7" );
}
return EXIT_SUCCESS;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone