@candh/

OrnateUnripeConstants

C

No description

fork
loading
Files
  • main.c

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6240744007410379","path":"main.c","file":{"path":"main.c","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPHN0ZGlvLmg+CgovLyB3YXMgbG9va2luZyBhdCB0aGUgZXhhbXBsZXMgZm9yIGNvbnZlcnRpbmcgYSBudW1iZXIgdG8gYmluYXJ5IHdpdGggdGhlIHVzZSBvZiBhIGV4cGxpY2l0IHN0YWNrIGFuZCB0aG91Z2h0IG9mIHRoaXMKLy8gZm9yIENPTVNBVFMgU1RVREVOVFMgU1RBTEtJTkcgTVkgUFJPRklMRQovLyBtdWpoZSBwYXRhIGhhaSB0dW1oYXJhIHBlc2hhcCBuaWthbCBqYXRhIGhhaSBhZ2FyIGtvaSB3byBjaGVleiBrYXJlIGpvICJzeWxsYWJ1cyIgbWVpbiBuYWkuIHR1IHRlbnNpb24gbmEgbG8gdGhpcyBpcyBqdXN0IGFuIGlkZWEuIGkgcG9zdCBpZGVhcyBoZXJlLiBub3QgZnVja2luZyBzdHVwaWQgY29sbGVnZSBzaGl0CgoKaW50IGJpbmFyeShpbnQgdmFsdWUpIHsKCWlmICh2YWx1ZSA+PSAxKSB7CgkJaW50IG1vZCA9IHZhbHVlICUgMjsKCQl2YWx1ZSAvPSAyOwoJCWJpbmFyeSh2YWx1ZSk7CgkJcHJpbnRmKCIlZCAiLCBtb2QpOwoJfQp9CgppbnQgbWFpbih2b2lkKSB7CiAgYmluYXJ5KDQyKTsKCXByaW50ZigiXG4iKTsKfQ=="},"asBuffer":null},"loaded":true}}
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");
}