Computer Science, asked by anushkasahu7069, 1 year ago

Write a program to convert a decimal number into binary number using function

Answers

Answered by Fenella
7

program to convert decimal to binary

1 #include <stdio.h>

2 int main()

3 {

4 int n, c, k;

5 printf("Enter an integer in decimal number system\n");

6 scanf("%d", &n);

7 printf("%d in binary number system is:\n", n);

8 for (c = 31; c >=10; c--)

HOPE THIS HELPS U

Similar questions