Program to check if N is a Icositetragonal number | C ++ implementation to check that a number is icositetragonal number or not ; Function to check that the number is a icositetragonal number ; Condition to check if the number is a icositetragonal number ; Driver Code ; Function call
#include <bits/stdc++.h> NEW_LINE using namespace std ; bool isicositetragonal ( int N ) { float n = ( 10 + sqrt ( 44 * N + 100 ) ) / 22 ; return ( n - ( int ) n ) == 0 ; } int main ( ) { int i = 24 ; if ( isicositetragonal ( i ) ) { cout << " Yes " ; } else { cout << " No " ; } return 0 ; }