Write a C program that will convert a decimal number into any base
Answers
Answered by
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
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