answersLogoWhite

0

Subjects>Science>Engineering

Write a progrem that will read a positive integer and determine and print its binary equivalent?

User Avatar

Anonymous

∙ 13y ago
Updated: 12/16/2022

main()

{

int n;

printf("\n Enter any number:");

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

}

dec2bin(int n)

{

if(n == 0)

return ; else

{

dec2bin (n/2);

printf("%d", n%10);

}

}

Try This one out and see. Better study hard. Kamei Ch Here

User Avatar

Wiki User

∙ 13y ago
Copy

What else can I help you with?

Continue Learning about Engineering

Weite a your own progrem to find a length of string without using library function?

int mystrlen (char* str) { int len = 0; while (*str++ != '\0') len++; return len; }


Related Questions

Weite a your own progrem to find a length of string without using library function?

int mystrlen (char* str) { int len = 0; while (*str++ != '\0') len++; return len; }


What is a pant progrem?

A pant program, often referred to as a "pants program," typically involves a structured initiative focused on developing or promoting specific types of trousers or pants, often within the fashion or retail industry. This may include design, production, marketing, and sales strategies aimed at enhancing the brand's offerings in this category. The term can also refer to educational or training programs that teach skills related to pant manufacturing or fashion design.


Trending Questions
What is a word for replacing body parts so that one's strength and abilities are greatly increased? Can drain vents on roof get clogged? Which WC flushing devices is not permitted for use in a house? Difference between managerial and operational MIS? What is the effect of resistance of the flow of current? What is tubo c? When writing code what can be nested for statement or if statement or both? Early cut off and late cut off? What is ULGA package? What are the two major industries that use yeast? What is unad cut off mark? Define unary operator explain different unary operators used in c language? What does sqrt function return? Difference between mealy and Moore sequencial circuits? Why is series resistor in all experiment necessary? What is hot cathode column? How does technology affect the quality and quantity of your life? Who was the one who invented the trash can? What is the difference between an RC CB and an EL CB? What size font does telephone book use in listing names for residential?

Resources

Leaderboard All Tags Unanswered

Top Categories

Algebra Chemistry Biology World History English Language Arts Psychology Computer Science Economics

Product

Community Guidelines Honor Code Flashcard Maker Study Guides Math Solver FAQ

Company

About Us Contact Us Terms of Service Privacy Policy Disclaimer Cookie Policy IP Issues
Answers Logo
Copyright ©2025 Answers.com. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Answers.