so this is my program
if i insert 150 after i run im expecting to get this
1 0 0 1
but im getting 1 0 0 0
why ?
#include "stdafx.h"
#include "iostream"
using namespace std;
int main()
{
int a=128 ,b=64 ,c=32 ,d=16 ,e=8 ,f=4 ,g=2 ,h=1 ,x ,m ,l ,i ,k ,j;
cout << "type a number to convert from decimal to binary" ;
cin >> x;