Check if a number is multiple of 5 without using / and % operators |  ; assumes that n is a positive integer ; Driver Code
#include <iostream> NEW_LINE using namespace std ; bool isMultipleof5 ( int n ) { while ( n > 0 ) n = n - 5 ; if ( n == 0 ) return true ; return false ; } int main ( ) { int n = 19 ; if ( isMultipleof5 ( n ) == true ) cout << n << " ▁ is ▁ multiple ▁ of ▁ 5" ; else cout << n << " ▁ is ▁ not ▁ a ▁ multiple ▁ of ▁ 5" ; return 0 ; }