Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

// was looking at the examples for converting a number to binary with the use of a explicit stack and thought of this
// for COMSATS STUDENTS STALKING MY PROFILE
// mujhe pata hai tumhara peshap nikal jata hai agar koi wo cheez kare jo "syllabus" mein nai. tu tension na lo this is just an idea. i post ideas here. not fucking stupid college shit


int binary(int value) {
	if (value >= 1) {
		int mod = value % 2;
		value /= 2;
		binary(value);
		printf("%d ", mod);
	}
}

int main(void) {
  binary(42);
	printf("\n");
}