Stack

16.4 - Decimal to binary using stack


Your task is to create a program which receives a single positive integer and prints out the binary equivalent of it.

Sample input

69

Sample output

1000101

Note that the number will always be a non-negative integer.

#include <iostream> #include <stack> int main() { }