LOGO
Start something that matters
Start something that matters
Stop wasting valuable time with projects that just isn't you.

Learn more and start today

ABOUT THE COMPANY

Key features of our company

Responsive

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.

Passion

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.

Design

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.

Support

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.

We know design.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore.

View Our Works

Buildings

THE TEAM

The ones who runs this company

John

John Doe

CEO & Founder

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

Jane

Anja Doe

Art Director

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

Mike

Mike Ross

Web Designer

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

Dan

Dan Star

Designer

Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.

14+
Partners
55+
Projects Done
89+
Happy Clients
150+
Meetings

OUR WORK

What we've done for people

A microphone
A phone
A drone
Soundbox
A tablet
A camera
A typewriter
A tableturner
×

Our Skills.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore.

Photography

90%

Web Design

85%

Photoshop

75%

PRICING

Choose a pricing plan that fits your needs.

  • Basic
  • 10GB Storage
  • 10 Emails
  • 10 Domains
  • Endless Support
  • $ 10

    per month
  • Pro
  • 25GB Storage
  • 25 Emails
  • 25 Domains
  • Endless Support
  • $ 25

    per month
  • Premium
  • 50GB Storage
  • 50 Emails
  • 50 Domains
  • Endless Support
  • $ 50

    per month

CONTACT

Lets get in touch. Send us a message:

Chicago, US

Phone: +00 151515

Email: mail@mail.com


-->

Sunday, 11 December 2016

C Program to Convert Decimal Numbers to Binary Numbers

Hello all,

you may find c code to convert decimal to binary numbers,so you are at the right place......

CODE :

#include <stdio.h> // include header file for i/o functions

int main(void)   //main function definition
{
int n,i,j;       //integers n=taking input for decimal number
                            //i and j for iterating for loop

printf("Enter Number which you want to convert into Binary Number : ");       //print information on stdout
scanf("%d",&n);    //read integers from stdin

for(i=sizeof(int);i>0;i--)   //i=sizeof(int) typically it is 4 for gcc and 2                                                         //for turbo c compiler
{
       for(j=1;j<=8;j++)
              {
                            printf("%u",(n&(1<<(i*8)-j))?1:0);    //here i used                                                                                                         //control statement
              }
               //if n AND (1<<bit number) is positive than prints 1 otherwise 0
               printf(" ");           //print space after printing 8 bits 
}
return 0;
}



Output.jpg


No comments:

Post a Comment