Check if a M | C ++ program to check if M - th fibonacci divides N - th fibonacci ; exceptional case for F ( 2 ) ; if none of the above cases , hence not divisible ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; void check ( int n , int m ) { if ( n == 2 m == 2 n % m == 0 ) { cout << " Yes " << endl ; } else { cout << " No " << endl ; } } int main ( ) { int m = 3 , n = 9 ; check ( n , m ) ; return 0 ; }