Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~99 People Reached
Favorite Forums
Favorite Tags
Member Avatar for aj07

[CODE=C]#include <stdio.h> #include <math.h> #include <string.h> #define N 100 void exit(); int main() { int n,n1,n2,bin[100],i,j; printf("Enter Decimal: \t\t"); scanf("%d",&n); n=n; n1=n; n2=n; printf("\nEquivalent Binary:\t",n); for(i=0;n!=0;i++) { bin[i]=n%2; n=n/2; } for(j=i-1;j>=0;j--) { printf("%d",bin[j]); } printf("\nEquivalent Octal:\t",n1); int r[10]; for(i=0;n1!=0;i++) { r[i]=n1%8; n1=n1/8; } i--; for(;i>=0;i--) { printf("%d",r[i]); } printf("\nEquivalent Hex: …

Member Avatar for Nathan Campos
0
99