hi everyone this is my code for square digit length

is not working, can someone help me on this?Code:#include <iostream> using namespace std; int main() { int day = 29; int mod; int div; int total; int counter = 0; int working = ((mod * mod) + (div * div)) mod = day%10;//gives 9 div = day/10;// gives 2 total = day; while(working != 4 || working != 1) { total = (mod * mod) + (div * div); counter++; } cout<<counter<<endl; system("pause"); return 0; }

and i got a problem for changing the integer for day ..