Question 1:
1. Fill up the given incomplete C Program and Implement the same in C programming language
using GDB online editor and show the output.
ICOB BTL-2, 10 Marks]
Hinclude<stdio.h>
int maino
int bin_num,condn,count_0.count_1.temp_num:
count_0=
count 1=
• Initialize the values
printf("Enter a binary number starting with 1 and having combinations of O's and 1's:");
scanf("%d".
Write the Correct Variable
temp. num=
while
{
condn=
bin num=
if
count_0++;
else if
3
printf(" The Binary Number is:%d n"
printf("The Count of Zeros in Binary Number are od n",
printf("The Count of Ones in Binary Number are:%d",
}
Answers
Answered by
0
Answer:
ICOB BTL-2, 10 Marks]
Hinclude<stdio.h>
int maino
int bin_num,condn,count_0.count_1.temp_num:
count_0=
count 1=
• Initialize the values
printf("Enter a binary number starting with 1 and having combinations of O's and 1's:");
scanf("%d".
Write the Correct Variable
temp. num=
while
{
condn=
bin num=
if
count_0++;
else if
3
printf(" The Binary Number is:%d n"
printf("The Count of Zeros in Binary Number are od n",
printf("The Count of Ones in Binary Number are:%d",
}
Explanation:
please mark me as brain list
Similar questions