Computer Science, asked by sbr18, 7 days ago

Write a C program that will convert a decimal number into any base

Answers

Answered by itzpurpledna
2

Answer:

Let's see the c example to convert decimal to binary.

#include<stdio.h>

#include<stdlib.h>

int main(){

int a[10],n,i;

system ("cls");

printf("Enter the number to convert: ");

scanf("%d",&n);

for(i=0;n>0;i++)

Answered by robintomar0711
1

Answer:

the c example to convert decimal to binary.

#include<stdio.h>

#include<stdlib.h>

int main(){

int a[10],n,i;

system ("cls");

printf("Enter the number to convert: ");

scanf("%d",&n);

for(i=0;n>0;i++)

Similar questions