this bit of code, prints the binary backwards, and I got no clue why I know it's a bit inefficient but I don't get why its backwards you can skip to case 1, the rest isn't a that important unless you want some extra details on it. anyways, if you have any ideas, it would be deeply appreciated
#include <iostream>
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World";
int num = 8;
int numalt;
while (num >= 1){numalt = num % 2;num=num / 2;if (numalt <= 1){cout<<numalt;};}
return 0;
}