Programming C : Print the series N, N-1, N-2, N-3,……………, 3, 2, 1 where N will come through keyboard.

Programming C : Print the series N, N-1, N-2, N-3,……………, 3, 2, 1 where N will come through keyboard.

Programming C :

Problem : Print the series N, N-1, N-2, N-3,……………, 3, 2, 1 where N will come through keyboard.

/*
Author : Sabya Roy
*/

 

#include <stdio.h>
#include <conio.h>

main()
{
             int n,i=1, k=1;                                      //Taking variable
             printf(“Enter the value of N : “);     //Show a dialog
             scanf(“%d”,&n);                                  //input the value of N
             while(i<=n)
             {
                          if (k==1)                                  // a condition
                          {
                                       printf(“Series : %d”,n);    //Show a dialog
                                       k++;
                          }
             else
                          printf(“%3d”,n);                           //Show the answer
                          n=n-1;
             }
             getch();
}

———————————————————————————————————————————————————-




Output :

Enter the value of N : 9
Series : 9  8  7  6  5  4  3  2  1

———————————————————————————————————————————————————-

Share this post

Comments (18)

  • Prescott Lakes Reply

    Thanks for the marvelous posting! I seriously enjoyed reading it, you can be a great author.I will remember to bookmark your blog and definitely will come back down the road.
    I want to encourage you continue your great work, have a nice
    morning!

    February 24, 2017 at 5:26 am
    • Glassy Black Reply

      I will try my best. Just stay with me and help me with your comment and share. Thank You

      February 24, 2017 at 12:58 pm
  • Host Reply

    Your style is really unique in comparison to other people I’ve
    read stuff from. Thanks for posting when you have
    the opportunity, Guess I will just bookmark this web site.

    March 16, 2017 at 12:25 pm
  • https://reviewsdeprodutos.com/reviews/interessado-em-mudar-de-vida/ Reply

    Hi to all, the contents present at this web site are in fact awesome for
    people experience, well, keep up the nice work fellows.

    March 22, 2017 at 7:01 am
  • office furniture Reply

    I have read so many posts regarding the blogger lovers but this article is really a nice piece of writing, keep it
    up.

    March 26, 2017 at 11:38 pm
  • http://virtprop.com/know-your-requirements-for-website-internet-hosting Reply

    I was curious if you ever considered changing the layout of
    your blog? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of
    content so people could connect with it better. Youve
    got an awful lot of text for only having 1 or 2
    pictures. Maybe you could space it out better?

    March 30, 2017 at 3:03 am
  • smm unleashed Reply

    Hello everybody, here every person is sharing these kinds of knowledge, thus it’s fastidious to read this
    webpage, and I used to visit this webpage all the time.

    April 4, 2017 at 11:10 pm
  • Domain Name Registration Reply

    This article will help the internet visitors for building up new website or even a weblog from start to end.

    April 10, 2017 at 1:07 am
  • website hosting free Reply

    hello there and thank you for your information – I’ve definitely picked
    up something new from right here. I did however expertise several technical issues using this website,
    as I experienced to reload the web site lots of times previous to
    I could get it to load properly. I had been wondering if your hosting is OK?
    Not that I’m complaining, but slow loading instances times will often affect your placement in google and can damage your
    quality score if advertising and marketing with Adwords.

    Anyway I’m adding this RSS to my e-mail and can look out for a lot more
    of your respective fascinating content. Ensure that you update this again soon.

    April 11, 2017 at 7:01 pm
  • Cochin Web Host Reply

    Hi there this is kind of of off topic but I was wanting
    to know if blogs use WYSIWYG editors or if
    you have to manually code with HTML. I’m starting a blog
    soon but have no coding know-how so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

    April 13, 2017 at 4:11 pm
  • calicut used furniture shop Reply

    Very rapidly this web site will be famous amid all blog viewers, due to
    it’s fastidious articles

    April 24, 2017 at 4:09 pm
  • buy used chair Reply

    Fastidioys answers in return of this issue with
    genuine arguments and explaining everything on the topic of that.

    May 3, 2017 at 2:48 am
  • cheap vps Reply

    If you want to take a great deal from this post
    then youu have to apply thee strategies to youur
    won web site.

    May 3, 2017 at 9:04 am
  • windows shared hosting Reply

    Thanks , I’vejust been searching for info approximately this subject for a long time and yours is the greatest I’ve came uponn
    so far. However, what about the bottom line? Are you positive about the supply?

    May 5, 2017 at 7:36 pm
  • chairs online kerala Reply

    Hi! I know this is kind of off topic but I was wondering which blog platform are you
    using for this site? I’m getting sick and tired of WordPress
    because I’ve had issues with hackers and I’m looking
    at options for another platform. I would be awesome if you could point me
    in the direction of a good platform.

    May 10, 2017 at 1:03 am
  • haceis Reply

    That’s why I’m so concerned that pocket Tarot applications are so all
    to easy to obtain and rehearse for people who know little about it.
    This toy is extremely useful when you wish to save your efforts for
    late penetration. Pussy pocket A1 Articles can be a family friendly site and thus articles that incorporate any from the following material are going
    to be rejected immediately:.

    He just feels which it’s within his head it affects him
    for like three days after which he starts feeling better
    after that. t realize, or neglect these areas from the body most LOVE attention.

    June 9, 2017 at 1:54 pm
  • wifi cam reviews Reply

    You may download and install any software that’s compatible with Windows Mobile – all in your amazing
    phone. It’s a lot an easy task to install these cameras today and furthermore, in many instances, the details gets stored into cloud securely and that means you really have nothing to stress about.

    While you can find laws constantly in place enforcing camera
    systems in specific business places and work environments, for their
    cost have fallen down more homes are seeing installations also.

    Some individuals put it to use simply because they demand to monitor what’s going on of their household or workplace.
    In market it is possible to get variety of wireless installation programs that
    provide details of venture plans.

    June 9, 2017 at 3:57 pm
  • Hochstellerhof Rheinland Pfalz Germany Reply

    Always a great ice breakbreaker and soon the girls were down to jiggling 36d and 36e boobs with us guys
    stripping off to our birthday suits as soon as we possibly could.
    He got a bowl of the shepherd s pie he had made and resumed his place at the
    table.

    July 13, 2017 at 2:12 am

Leave a Reply

Your email address will not be published. Required fields are marked *