تبلیغات
پروژه های رایگان برنامه نویسی و آموزش زبان C++ و C# - تبدیل عدد در مبنای 10 (Decimal) به مبنای 16 (Hexadecimal)
 
برنامه بدون خطا رویاست Program is impossible without an error
پروژه های رایگان برنامه نویسی و آموزش زبان C++ و C#
صفحه نخست         تماس با مدیر         پست الکترونیک        RSS         ATOM
 
 

این سورس برای تبدیل عدد در مبنای 10 (Decimal) به مبنای 2  (Hexadecimal) نوشته شده است

 

#include <stdio.h>
#define max 10

void Hex(int);


main(){
 int s16[max],tmp,j=0;

 printf("\n Decimal --> Hexadecimal");
 printf("\n\n Enter a Number(Right --> 245): ");
 scanf("%d",&tmp);

             
 while(tmp>=16){                   
  s16[j++]=tmp%16;                
  tmp/=16;                       
 }                                  
 j--;

 printf("\n\n HexaDecimal = ");
 Hex(tmp);
 for(j;j>=0;j--)
   Hex(s16[j]);

}
//***************************************************************************
void Hex(int x){
 switch(x){
   case 10: printf("%c",'A'); break;
   case 11: printf("%c",'B'); break;
   case 12: printf("%c",'C'); break;
   case 13: printf("%c",'D'); break;
   case 14: printf("%c",'E'); break;
   case 15: printf("%c",'F'); break;
   default: printf("%d",x);
  }
}

 

 





نوع مطلب : پروژه های برنامه نویسی ++C، 
برچسب ها : تبدیل مبنا،
لینک های مرتبط :


پنجشنبه 27 اردیبهشت 1397 05:06 قبل از ظهر
Hi there!Someone in my Myspace group shared this website with us so I came to
give it a look. I'm definitely loving the information.
I'm book-marking and will be tweeting this to my followers!
Fantastic blo aand amazing style and design.
یکشنبه 23 اردیبهشت 1397 03:53 بعد از ظهر
Thanks for sharing your info. I really appreciate your efforts and I am waiting for your next post thanks once again.
سه شنبه 4 اردیبهشت 1397 04:49 قبل از ظهر

Amazing tons of amazing knowledge!
buy viagra brand online where to buy viagra without a prescription online pharmacy viagra generic buy cheap generic viagra buy viagra online generic buy generic viagra with paypal where to buy cheap viagra how to purchase viagra online online sildenafil uk viagra for sale online
جمعه 31 فروردین 1397 07:36 بعد از ظهر
Sweet blog! I fund itt whilke searcbing oon Yaho News. Do yoou haqve anny tios oon howw too gett liste inn Yahooo News?
I've beeen tring foor a whie butt I nnever
sedm tto geet there! Cheers
یکشنبه 26 فروردین 1397 03:12 بعد از ظهر
Hеllo Theгe. Ι found ʏour blog using msn. This is a
reaⅼly wеll wrіtten article. I'll be sure to bookmark іt
and ϲome back to read more οf your uѕeful info.
Тhanks for the post. Ι'll certainly comeback.
جمعه 24 فروردین 1397 04:50 قبل از ظهر
I enjoy ѡһat ʏou guys tend to be up too.
Τhіѕ ҝind of clever ѡork and coverage! Ⲕeep սⲣ the terrific works guys I've you guys to mу own blogroll.
پنجشنبه 23 فروردین 1397 10:57 قبل از ظهر
Hі, I do believe this is a grеat blog. Ӏ stumbledupon it
;) I ɑm gⲟing to revisit yet again ѕince I bookmarked
іt. Money and freedom іs the Ьest ᴡay to ϲhange, maү you be rich
ɑnd continue to heⅼρ otһeг people.
جمعه 17 فروردین 1397 08:28 بعد از ظهر

You mentioned that fantastically!
non 5 mg cialis generici prescription doctor cialis pastillas cialis y alcoho cialis online holland cialis usa cost buy cialis we like it safe cheap cialis cialis kamagra levitra cialis wir preise cialis italia gratis
شنبه 11 فروردین 1397 10:40 قبل از ظهر
There is certainly a great deal to find out about this issue.
I love all of the points you have made.
سه شنبه 7 فروردین 1397 12:48 قبل از ظهر
Awesome post.
جمعه 3 فروردین 1397 05:05 بعد از ظهر

Incredible quite a lot of useful info.
cialis 30 day sample wow cialis 20 200 cialis coupon cialis per paypa tadalafil generic cialis generic cialis sale online buy cialis online legal cialis alternative wow cialis tadalafil 100mg
یکشنبه 27 اسفند 1396 11:57 بعد از ظهر

Whoa tons of excellent info!
safe dosage for cialis india cialis 100mg cost generic cialis at the pharmacy cialis 30 day sample cialis italia gratis cialis bula cialis from canada rezeptfrei cialis apotheke prix cialis once a da female cialis no prescription
پنجشنبه 3 اسفند 1396 12:13 قبل از ظهر
Hello.Thiѕ article was extremeⅼy motivating, especially sine I was looking for thoughts ⲟon this
toic last week.
دوشنبه 30 بهمن 1396 07:23 بعد از ظهر
Aѕ a Nеwbie, I am continuously browsing online for articles that сan help me.
Thank you
دوشنبه 30 بهمن 1396 12:49 قبل از ظهر
When some one searcheѕ for his essential thіng, ѕo he/shе wishes to
be available thɑt in detail, tһus that thing is maintained over heге.
شنبه 7 بهمن 1396 07:50 بعد از ظهر
I neеd to to thank you for thiѕ fɑntastic read!! I definitely loved every ƅit of іt.
I've got you ѕaveԁ as a favorite to loоk at neww things you post…
چهارشنبه 4 بهمن 1396 08:17 بعد از ظهر
Kᥙrt Gulovmand , I think the buoyant sentiment around today is a
concequence of а fals ѕett of ciгcumstances. Tһe demand for consumer loans iis ѕtill
wеak and theгe is no significant improvement in the
houѕing maгket. Tһe developed nations are surviving
on their governments abiiⅼity t᧐ jjst borrow and spend into
their economieѕ which is difficult to maintain. Regards,
Estela Camp.
شنبه 30 دی 1396 10:36 قبل از ظهر
I need to ttⲟ thank you for this very good read!! I ԁefinitely loved every little bit of it.
I have got you book-markeɗ to check out neww stuff you post…
جمعه 29 دی 1396 01:41 قبل از ظهر
Maɡnifіcent ցoods from you, man. I've understand your stuff previous
to and you're just too fantastic. I really like what you hasve acquired here,
really like what yoou are saying and the waʏ in which you say it.

Yoou make it entertaining and you still care ffor to keep it sensiblе.
I cant wait to read far more from you. This is relly a tremendous website.
چهارشنبه 27 دی 1396 11:49 بعد از ظهر
Wοw! Thank yоu! I permmanently needed to
write on my website somеthing like that. Can I implement a part of yohr post to my website?
یکشنبه 26 آذر 1396 05:48 بعد از ظهر
I precisely desired to thank you so much all over again.
I do not knoow the things that I might have tried in the absence of those
basics documented by you
پنجشنبه 20 مهر 1396 10:15 بعد از ظهر
Hi there, always i used to check blog posts here in the early hours in the daylight, as i like to find out more and more.
پنجشنبه 20 مهر 1396 08:41 بعد از ظهر
hey there and thank you for your info – I have definitely picked
up something new from right here. I did however expertise several technical issues using this site, as I experienced to reload the web site lots of times previous to I
could get it to load correctly. I had been wondering if your
hosting is OK? Not that I'm complaining, but slow loading instances times will sometimes affect your placement in google and can damage your high quality score if ads and marketing with Adwords.
Well I'm adding this RSS to my email and could look out for much more of your respective exciting content.

Ensure that you update this again very soon.
پنجشنبه 20 مهر 1396 08:36 بعد از ظهر
When someone writes an post he/she retains the plan of a user in his/her
brain that how a user can understand it. So that's why this
article is perfect. Thanks!
پنجشنبه 20 مهر 1396 08:24 بعد از ظهر
Write more, thats all I have to say. Literally,
it seems as though you relied on the video to make your point.
You obviously know what youre talking about, why waste your intelligence
on just posting videos to your weblog when you could be giving us something enlightening to read?
پنجشنبه 20 مهر 1396 08:03 بعد از ظهر
Nice post. I learn something new and challenging on sites
I stumbleupon everyday. It will always be interesting to read through articles from other writers and use a little something from their websites.
پنجشنبه 20 مهر 1396 07:57 بعد از ظهر
I'm amazed, I have to admit. Seldom do I encounter a blog that's both educative and amusing, and without a doubt, you've hit the nail on the
head. The problem is an issue that too few people are speaking intelligently about.
I am very happy I found this in my search for something relating to this.
پنجشنبه 20 مهر 1396 07:51 بعد از ظهر
I've read some just right stuff here. Definitely worth bookmarking for revisiting.
I wonder how so much effort you set to create this kind of wonderful informative website.
پنجشنبه 20 مهر 1396 07:42 بعد از ظهر
My brother recommended I might like this website.
He was totally right. This post truly made my day. You cann't imagine simply how much time I had spent
for this information! Thanks!
پنجشنبه 20 مهر 1396 07:19 بعد از ظهر
I would like to thank you for the efforts you have put in writing this website.

I am hoping to view the same high-grade content by you later on as well.
In truth, your creative writing abilities has encouraged me to
get my very own website now ;)
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


نمایش نظرات 1 تا 30
درباره وبلاگ

انجام پروژه های برنامه نویسی سی و سی پلاس پلاس و سی شارپ

انجام پروژه های الکترونیکی و رباتیکی

مدیر وبلاگ : سجاد سلطانی
مطالب اخیر
نویسندگان
جستجو

آمار وبلاگ
کل بازدید :
بازدید امروز :
بازدید دیروز :
بازدید این ماه :
بازدید ماه قبل :
تعداد نویسندگان :
تعداد کل پست ها :
آخرین بازدید :
آخرین بروز رسانی :














free counters