Strona główna > C, Sortowanie > Sortowanie babelkowe C

Sortowanie babelkowe C

//sortowanie babelkowe
#include <stdio.h>
#include <conio.h>
int main (void)
{
    int n=0, schowek=0, tab[n];
    printf("Ile liczb posortowac ? ");
    scanf ("%d", &n);
    for (int i=0; i<n; i++)
    {
        printf("podaj %d liczbe", i+1);
        scanf ("%d", &tab[i]);
    }
    int stop=1;
	while (stop)//sortuj az wszystko posortowane
	{
        stop=0;
        for (int i=0; i<n-1; i++)
        {
            if (tab[i+1]<tab[i])
            {
                 schowek=tab[i];
                 tab[i]=tab[i+1];
                 tab[i+1]=schowek;
                 stop=1;
            }
        }
	}
    for (int i=0; i<n; i++)
    printf("%d   ", tab[i]);
    getch();
    return 0;
}
Kategorie:C, Sortowanie
  1. 24 Październik 2012 o 2:48 pm | #1

    Hi there, this weekend is pleasant in support of me, because this
    point in time i am reading this wonderful informative article here at my house.

  2. 30 Październik 2012 o 7:55 am | #2

    Greetings from California! I’m bored to tears at work so I decided to browse your blog on my iphone during lunch break. I love the info you provide here and can’t wait to take a
    look when I get home. I’m shocked at how quick your blog loaded on my phone .. I’m not even using WIFI, just 3G .
    . Anyhow, very good site!

  3. 30 Październik 2012 o 8:13 am | #3

    I’m amazed, I have to admit. Rarely do I come across a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head.

    The issue is something too few folks are speaking intelligently about.
    I’m very happy that I stumbled across this in my hunt for something relating to this.

  4. 4 Styczeń 2013 o 10:23 am | #4

    I really like your blog.. very nice colors & theme. Did you
    design this website yourself or did you

    hire someone to do it for you? Plz respond as I’m looking to create my own blog and

    would like to find out where u got this from. kudos

    • 4 Styczeń 2013 o 12:46 pm | #5

      If you really interesting on blogging, you can’t have any problem to answer yourself to your question.

  5. 4 Luty 2013 o 2:02 am | #6

    I’d like to thank you for the efforts you’ve put in writing this website.
    I’m hoping to view the same high-grade blog posts from you in the future as well. In fact, your creative writing abilities has motivated me to get my own site now ;)

  6. 12 Luty 2013 o 2:15 am | #7

    Hey there this is kind of of off topic but I was wondering if blogs use WYSIWYG
    editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

  7. 28 Luty 2013 o 9:13 pm | #8

    This is very interesting, You are a very skilled blogger.
    I have joined your feed and look forward to seeking more
    of your fantastic post. Also, I’ve shared your site in my social networks!

  8. 26 Marzec 2013 o 12:06 pm | #9

    Link exchange is nothing else however it is just placing the other person’s blog link on your page at suitable place and other person will also do similar in favor of you.

  9. 23 Maj 2013 o 5:35 pm | #10

    excellent points altogether, you just received a emblem new reader.
    What may you suggest in regards to your put
    up that you simply made some days in the past?
    Any positive?

  10. 8 Czerwiec 2013 o 8:33 pm | #11

    I look on the morning line odds and also the tote board odds
    at 5 minutes to post. When selecting lay bets its harder
    to come up with a profit as this type of betting
    is available about the betting exchanges as well as the prices that punters must lay at is quite a bit more than industry starting
    price. This is one in the most crucial horseracing tips
    for beginners and one that can serve you well throughout your betting career.
    If according to sound principles it should keep working successfully to suit your needs, otherwise for life at the very least for quite a little while.

  11. 18 Czerwiec 2013 o 11:19 am | #12

    Generally I do not learn article on blogs, however I would like to say that this write-up very pressured
    me to check out and do it! Your writing taste has been amazed me.

    Thanks, very nice post.

  12. 21 Czerwiec 2013 o 12:07 pm | #13

    If you are going for best contents like I do, only visit this site everyday
    since it offers feature contents, thanks

  13. 21 Czerwiec 2013 o 11:10 pm | #14

    My brother suggested I might like this web site. He was totally right.
    This post actually made my day. You cann’t believe just how a lot time I had spent for this info! Thanks!

  14. 27 Czerwiec 2013 o 4:01 am | #15

    Hello there, You have done an incredible job. I’ll certainly digg it and personally recommend to my friends. I am confident they’ll be benefited from this web site. payday loan online

  15. 27 Czerwiec 2013 o 10:00 am | #16

    After looking over a number of the blog articles on your web site,
    I honestly like your technique of writing a blog.
    I book-marked it to my bookmark webpage list and will be checking back
    soon. Please check out my website as well and let me know your opinion.

  16. 2 Lipiec 2013 o 5:03 pm | #17

    magnificent post, very informative. I ponder why the
    other experts of this sector do not understand this.
    You must proceed your writing. I am confident, you’ve a huge readers’ base already!

  17. 2 Lipiec 2013 o 11:02 pm | #18

    Good post. I learn something new and challenging on blogs I stumbleupon every
    day. It’s always exciting to read articles from other writers and practice something from their sites.

  18. 7 Lipiec 2013 o 11:12 am | #19

    This is really interesting, You’re a very professional blogger. I’ve
    joined your feed and sit up for searching for extra of your wonderful post.

    Also, I’ve shared your site in my social networks

  19. download affiliate network
    8 Lipiec 2013 o 10:00 pm | #20

    Yes! Finally someone writes about sterkly careers.

  20. 22 Lipiec 2013 o 3:24 am | #21

    Hey there would you mind letting me know which webhost you’re utilizing? I’ve loaded your blog in
    3 completely different internet browsers and I must say this blog
    loads a lot quicker then most. Can you suggest a good hosting provider at a fair price?
    Thank you, I appreciate it!

  21. 24 Lipiec 2013 o 1:45 am | #22

    You have made some decent points there. I looked on the
    internet to find out more about the issue and found
    most individuals will go along with your views on this web
    site.

  22. 25 Lipiec 2013 o 10:14 pm | #23

    We absolutely love your blog and find a lot of your post’s to be precisely what I’m looking for.
    Do you offer guest writers to write content for you?
    I wouldn’t mind producing a post or elaborating on a few of the subjects you write in relation to here. Again, awesome weblog!

  23. 7 Sierpień 2013 o 4:36 am | #24

    Wow, fantastic blog layout! How lengthy have you been blogging for?
    you made running a blog look easy. The whole look of your site is wonderful,
    as well as the content material!

  24. 9 Sierpień 2013 o 7:51 am | #25

    Great post. I used to be checking continuously this blog and
    I am inspired! Extremely useful info specifically the closing phase :) I deal with such info a lot. I was looking for this particular info for a very long time.
    Thanks and good luck.

  25. 11 Sierpień 2013 o 12:59 pm | #26

    I do consider all of the concepts you’ve introduced for your post. They’re really convincing and will certainly work.
    Nonetheless, the posts are too quick for beginners. May just you
    please lengthen them a little from subsequent time? Thank you for the post.

  26. 2 Wrzesień 2013 o 8:04 am | #27

    Hello to every one, the contents existing at this site are really
    awesome for people knowledge, well, keep up the good
    work fellows.

  27. 8 Październik 2013 o 7:45 am | #28

    I know this if off topic but I’m looking into starting my own weblog and was wondering what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100% sure. Any recommendations or advice would be greatly appreciated. Kudos

  28. 16 Październik 2013 o 9:13 pm | #29

    I’m really enjoying the design and layout of
    your website. It’s a very easy on the eyes which makes it much more enjoyable for
    me to come here and visit more often. Did you hire out a designer to create
    your theme? Outstanding work!

  29. 30 Listopad 2013 o 5:11 pm | #30

    Pretty nice post. I just stumbled upon your blog and wanted to say
    that I have truly enjoyed surfing around your blog posts.
    After all I’ll be subscribing to your feed and I hope
    you write again very soon!

  30. 6 Grudzień 2013 o 5:27 pm | #31

    Everyone loves it when folks get together and share thoughts.
    Great website, stick with it!

  31. 21 Grudzień 2013 o 4:46 am | #32

    I’m curious to find out what blog system you’re using? I’m having
    some small security issues with my latest website and I’d like to
    find something more safeguarded. Do you have any suggestions?

  32. 29 Grudzień 2013 o 11:45 am | #33

    Helpful info. Lucky me I found your web site by accident, and
    I am surprised why this accident did not came about in advance!
    I bookmarked it.

  33. 1 Styczeń 2014 o 2:32 am | #34

    Neat blog! Is your theme custom made or did you download it from somewhere?
    A design like yours with a few simple tweeks would really make my blog stand out.
    Please let me know where you got your design. Thanks

  34. 1 Styczeń 2014 o 9:44 pm | #35

    Great site you’ve got here.. It’s hard to find high quality writing like yours these
    days. I seriously appreciate individuals like you!
    Take care!!

  35. 4 Styczeń 2014 o 10:58 am | #36

    Please let me know if you’re looking for a writer for your weblog.
    You have some really great posts and I think I would be a good asset.
    If you ever want to take some of the load
    off, I’d love to write some material for your blog in exchange for a
    link back to mine. Please shoot me an email if interested.
    Kudos!

  36. 22 Styczeń 2014 o 3:54 am | #37

    obviously like your website but you have to take a
    look at the spelling on several of your posts. Several of them are rife with spelling problems and I to find it very bothersome to inform the truth on the other hand I’ll
    surely come again again.

  37. 22 Styczeń 2014 o 5:12 am | #38

    I am truly delighted to glance at this website posts which includes lots
    of useful facts, thanks for providing such information.

  38. 22 Styczeń 2014 o 6:17 am | #39

    Hi my loved one! I wish to say that this article is awesome, nice written and
    come with approximately all significant infos. I would like
    to see more posts like this .

  39. 23 Styczeń 2014 o 12:54 am | #40

    Pretty nice post. I just stumbled upon your blog and
    wished to say that I have

    truly enjoyed browsing your blog posts. After all I will be subscribing to your

    rss feed and I hope you write again very soon!

  40. 27 Styczeń 2014 o 11:51 am | #41

    Hi there, after reading this awesome article i
    am as well cheerful to sbare my know-how here with friends.

  41. 3 Luty 2014 o 6:55 am | #42

    Hello, everything is going fine here and ofcourse every one is sharing
    information, that’s actually excellent, keep up writing.

  42. 3 Luty 2014 o 3:29 pm | #43

    افضل فيديو العاب دورا ، دورا ، dora , dora
    games شاهدته في حياتي

  43. 12 Luty 2014 o 5:34 am | #44

    My brother suggested I might like this web site.
    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!

  44. 13 Luty 2014 o 4:32 am | #45

    Hi, i think that i noticed you visited my site so i came to return the prefer?.I am tying too to find things to enhance myy web site!I assume its adequafe to make use of a few of
    your ideas!!

  45. 14 Luty 2014 o 10:41 pm | #46

    Slots are a great anti-slots talk from Jill Carter, a very little amount is left online slot machines with the person himself.

  46. 20 Luty 2014 o 2:58 pm | #47

    Excellent way of telling, and nice piece of writing to take facts regarding my presentation subject
    matter, which i am going to present in school.

  47. 22 Luty 2014 o 4:15 pm | #48

    Excellent article. I absolutely appreciate this site. Keep writing!

    buy facebook fans and also quick for your facebook Profile by greatest Providers.

    facebook profile, likes facebook, attract more likes with facebook

  48. 28 Luty 2014 o 6:18 am | #49

    When they are used together, the effluent that comes from the anaerobic tank goes
    into an aerobic treatment tank and gets decontaminated even more.
    Anyone who washes their flower pots in the sink or bathtub may not realize they have a clog waiting to happen.

    Ask About the Septic System – where is it, what’s installed, what’s the service and repair history.

  49. 28 Luty 2014 o 5:13 pm | #50

    There are two passageways or channels inside of
    the gun. It is a fine earthy shade and is soothing
    to the eyes. That is why study should be performed ahead of searching for a
    hybrid motor vehicle rental. http://france-expatries.com/content/car-insurance-coverage-guidelines

  50. 4 Marzec 2014 o 6:11 am | #51

    Currently it looks like WordPress is the best blogging platform available right
    now. (from what I’ve read) Is that what you are using on your blog?

  51. 5 Marzec 2014 o 6:06 pm | #52

    It’s really very difficult in this active life to listen news on Television, therefore I simply
    use internet for that reason, and get the newest information.

  52. 5 Marzec 2014 o 7:01 pm | #53

    As an enthusiast of information technology invite any lady interested in
    IT at my blog. Downloading of test training describe I ask and I
    practice multipurpose type furniture – using by with mobile phones, on significantly HP servers,
    IMB or Cisco. Good contacts with distributors
    accesses give me to power equipment lot before the premiere.

  53. 5 Marzec 2014 o 7:07 pm | #54

    Hurrah, that’s what I was searching for, what a information!

    present here att this webpage, thankss admin of this site.

  54. 9 Marzec 2014 o 11:07 pm | #55

    I am really enjoying the theme/design of your blog. Do you ever
    run into any web browser compatibility issues?
    A couple of my blog visitors have complained about my site not operating correctly in Explorer but looks great in Opera.
    Do you have any suggestions to help fix this problem?

  55. 10 Marzec 2014 o 4:46 pm | #56

    Hi just wanted to give you a brief heads up and let you know a few of the images
    aren’t loading correctly. I’m not sure why but
    I think its a linking issue. I’ve tried it in two different web browsers and both
    show the same results.

  56. 12 Marzec 2014 o 11:21 am | #57

    I used to be recommended this website by my cousin.
    I’m no longer positive whether this submit is written through him as
    no one else recognize such exact about my problem. You are amazing!
    Thank you!

  57. 12 Marzec 2014 o 5:07 pm | #58

    Hi there, I do think your blog may be having internet browser compatibility
    issues. When I look at your site in Safari, it looks fine however, when opening in IE, it’s got some overlapping issues.
    I merely wanted to provide you with a quick heads up!
    Aside from that, great site!

  58. 15 Marzec 2014 o 3:10 pm | #59

    I know this website presents quality dependent content and additional information,isthere any other site which provides these data in
    quality?

  59. 19 Marzec 2014 o 6:42 pm | #60

    If you are going for finest contents like myself, simply pay a
    visit this website every day since it gives feature contents, thanks

  60. idm
    21 Marzec 2014 o 4:11 am | #61

    There is definately a great deal to learn about this topic.

    I love all the points you made.

  61. 26 Marzec 2014 o 5:52 pm | #62

    Why ussers still use to read news papers when in this technological world all is available on web?

  62. 28 Marzec 2014 o 4:14 am | #63

    · Sticky foods should be avoided at all costs when you have a temporary filling.
    The site of this Las Vegas house – 2180 De
    Rouge AV is really interesting. Property Hookup has carved a niche in Las Vegas investment real estate by providing the buyers and investors with an access
    to updated information on residential property for sale.

  63. 2 Kwiecień 2014 o 1:08 pm | #64

    Woah! I’m really digging the template/theme of this site.

    It’s simple, yet effective. A lot of times it’s very hard
    to get that “perfect balance” between superb usability and
    visual appeal. I must say you have done a very good job with this.
    Additionally, the blog loads extremely fast for me on Chrome.

    Outstanding Blog!

  64. 3 Kwiecień 2014 o 4:41 am | #65

    What’s up, after reading this amazing article i am as
    well happy to share my knowledge here with mates.

  65. 3 Kwiecień 2014 o 7:38 am | #66

    The second complication is the regularity of cash flows.
    Thhe commercial banks may rediscount these bills with FIs like EXIM bank, SIDBI,
    IDBI, etc. All you have to do before making an online purchase is to check tthe
    ebates website to see whether the merchant is listed and if listed simply follow tthe link
    at ebates.

  66. 4 Kwiecień 2014 o 3:38 pm | #67

    I’ll right away grasp your rss as I can’t to find your email subscription link or e-newsletter service.
    Do you’ve any? Kindly permit me recognize in order that I could subscribe.
    Thanks.

  67. 10 Kwiecień 2014 o 10:06 am | #68

    Some bakeries specialize in selling gourmet, organic or gluten-free
    baked goods. Not overly sweet, a good balance hits the taste buds.
    Gluten Free Chocolate Chip Cookie Mix: Item # 2017 UPC Code 7376967020171 16 oz.

  68. 14 Kwiecień 2014 o 6:17 pm | #69

    Just desire to say your article is as amazing. The clarity in your
    post is just nice and i could assume you’re an expert onn this subject.
    Fine with your permission allow me to grab your feed to keep updated with forthcoming post.
    Thanks a million and please carry on the enjoyable work.

  69. 15 Kwiecień 2014 o 3:51 am | #70

    Remarkable things here. I’m very satisfied to peer yoiur post.
    Thank you so much and I’m looking forward to contact you.
    Will you kindly drop me a e-mail?

  70. 15 Kwiecień 2014 o 7:07 am | #71

    I am regular reader, how are you everybody? This article posted
    at this web page is really pleasant.

  1. No trackbacks yet.

Dodaj komentarz

Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:

WordPress.com Logo

Komentujesz korzystając z konta WordPress.com. Log Out / Zmień )

Twitter picture

Komentujesz korzystając z konta Twitter. Log Out / Zmień )

Facebook photo

Komentujesz korzystając z konta Facebook. Log Out / Zmień )

Google+ photo

Komentujesz korzystając z konta Google+. Log Out / Zmień )

Connecting to %s

Follow

Otrzymuj każdy nowy wpis na swoją skrzynkę e-mail.

Join 26 other followers

%d bloggers like this: