Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
0 Endorsements
Ranked #107.80K
~3K People Reached
Favorite Forums
Favorite Tags
c x 1

1 Posted Topic

Member Avatar for vegaseat

//decimal to binary [code] #include<stdio.h> void main() { long int deci,rem,bin,p=1; printf("enter no"); scanf("%ld",&deci); if (deci > 0) { while (deci > 0) { rem=deci%2; bin=rem*p+bin; p=p*10; deci=deci%2; } printf("binary no is %ld",bin); //end of while loop getchar(); } //end of condition else printf("binary no for +tive integer only"); getchar(); …

Member Avatar for soorajshaji
0
3K

The End.