translate to binary translation

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> int main(void) { int n,i = 0; int ostacha = 0; int mas[10] = {0}; printf("Enter your value!\n"); scanf("%d",&n); while(n>=1) { ostacha = n % 2; mas[i]= ostacha; n = n/2; i++; } for(int j = i-1; j>=0;j--) { printf("%d",mas[j]); } getchar(); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines