Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.
Showing posts with label Decimal to Binary. Show all posts
Showing posts with label Decimal to Binary. Show all posts

Sunday, September 12, 2010

WAP to Convert Decimal to Binary


/*Convert Decimal to Binary*/
#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 int a,b,x,y,i[5],j,r;
 printf("Enter  no.");
 scanf("%d",&a);
 x=a%2;
 y=a/2;
 b=(y*2)+(x);
 for(j=0;b!=0;b/=2)
 {
  i[j]=b%2;
  j++;
 }
 for(r=j-1;r>=0;r--)
 {
  printf("%d",i[r]);
 }
 getch();
}

ADS

How to earn online

How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786

AddMe

Bookmark and Share