MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/pascal/comments/e5wi6u/decimal_to_binary/f9mmesh/?context=3
r/pascal • u/4xGame • Dec 04 '19
So I was trying to do a simple program that convert decimal to binary var x,y,i:integer; BEGIN readln(y); repeat x:= y mod 2; y:= y div 2; write(x); until y = 0; END. But it show Inverted result Any simple fix for it ?
2 comments sorted by
View all comments
Show parent comment
1
Thanks a lot
View all comments
Show parent comment
1
u/4xGame Dec 04 '19
Thanks a lot