تبلیغات
پروژه های رایگان برنامه نویسی و آموزش زبان 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، 
برچسب ها : تبدیل مبنا،
لینک های مرتبط :


چهارشنبه 28 شهریور 1397 06:38 بعد از ظهر

Many thanks! Loads of data!

cialis side effects il cialis quanto costa free generic cialis we choice free trial of cialis we use it 50 mg cialis dose india cialis 100mg cost buy original cialis cialis therapie are there generic cialis generic cialis pro
سه شنبه 27 شهریور 1397 03:28 بعد از ظهر

You actually explained this fantastically!
legalidad de comprar cialis cialis lowest price viagra or cialis cialis 20 mg cut in half cialis for sale south africa cost of cialis per pill generic cialis usa cialis online canada discount drugs cialis safe dosage for cialis
سه شنبه 13 شهریور 1397 07:37 بعد از ظهر

Wow plenty of awesome information.
drugstore online prescriptions from canada without pharmacy onesource pharmacy canada reviews canadian pharmacies without an rx discount canadian pharmacies trusted pharmacy canada trust pharmacy canada reviews Northwest Pharmacy north west pharmacy canada
سه شنبه 13 شهریور 1397 04:01 قبل از ظهر

Thank you. Ample information!

buy viagra online without prescription uk buy viagra usa buy viagra online ireland get a prescription for viagra online viagra get viagra prescription viagra side effects where to buy viagra for women get online prescription for viagra buy viagra without prescription uk
یکشنبه 11 شهریور 1397 12:48 بعد از ظهر

Info well considered..
cialis diario compra acquistare cialis internet cialis generika in deutschland kaufen cost of cialis per pill we recommend cialis info sublingual cialis online cialis 20mg preis cf cialis dosage recommendations achat cialis en itali cialis rezeptfrei
سه شنبه 23 مرداد 1397 03:19 قبل از ظهر

With thanks! A good amount of content!

viagra pfizer buy online sildenafil uk buy viagra no prescription viagra online without cheap generic viagra order cheap viagra online sildenafil without prescription uk canadian pharmacy buy viagra online uk cheapest viagra online
دوشنبه 22 مرداد 1397 12:31 قبل از ظهر

Superb write ups. Kudos.
cialis daily new zealand cialis 5mg tadalafil 10 mg cialis taglich cialis generic availability cialis price in bangalore cialis et insomni cialis side effects cialis 5mg prix cialis 5 mg effetti collateral
جمعه 8 تیر 1397 08:27 قبل از ظهر
Hiya very nice website!! Man .. Excellent .. Superb .. Ι'll bookmark yоur site
and tak the feeds additionally? I'm glad tօ find numerous useful info rіght heгe іn tһe post, ѡе
ned work out extra techniques in tһis regard, thanjks foг sharing.

. . . . .
سه شنبه 29 خرداد 1397 12:06 بعد از ظهر
If somе one wishes expert viеw ɑbout running а blog
after that i propose him/her to goo t᧐ ѕee this webpage, Keeρ up the fastidious ԝork.
دوشنبه 7 خرداد 1397 02:45 قبل از ظهر

You said it adequately..
cialis professional from usa buying cialis overnight get cheap cialis cialis 200 dollar savings card cialis canada cialis herbs walgreens price for cialis click now buy cialis brand cialis super kamagra cialis flussig
پنجشنبه 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?
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


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

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

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

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

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














free counters