|
Newbie Member
|
|
| 9Nov2010,17:04 | #21 |
|
Thank you very much
|
|
Light Poster
|
|
| 24Nov2010,22:40 | #22 |
|
thank you mr.shabir you very good
![]() ![]()
|
|
Go4Expert Founder
|
![]() |
| 25Nov2010,08:41 | #23 |
|
Newbie Member
|
|
| 27Dec2010,11:18 | #24 |
|
Hii,,
i need the code for md5 in c language... plz help me |
|
Light Poster
|
|
| 28Dec2011,11:36 | #25 |
|
hi mr shabbir, got a question here,, can you increase the maximum input of convertion, if i input 32767+ i get wrong convertion thx for the reply
|
|
Go4Expert Founder
|
![]() |
| 28Dec2011,15:57 | #26 |
|
Why don't you try the same and share it as an article here. I am sure my code is good enough to explain you the concept.
|
|
Light Poster
|
|
| 28Dec2011,16:16 | #27 |
|
Code:
#include <stdio.h>
#include <conio.h>
main ()
{
int n,r[10],i;
clrscr();
printf("Enter a number to get its hexadecimal equivalent\n");
scanf("%d",&n);
for(i=0;n!=0;i++)
{
r[i]=n%16;
n=n/16;
}
i--;
for(;i>=0;i--)
{
if(r[i]==10)
printf("A");
else if(r[i]==11)
printf("B");
else if(r[i]==12)
printf("C");
else if(r[i]==13)
printf("D");
else if(r[i]==14)
printf("E");
else if(r[i]==15)
printf("F");
else
printf("%d",r[i]);
}
printf("\n");
getch();
return 0;
}
|
|
Go4Expert Founder
|
![]() |
| 28Dec2011,16:25 | #28 |
|
May be because that is the limit of int and see if changing the data type helps.
|
|
Light Poster
|
|
| 28Dec2011,16:33 | #29 |



