Thread: Whether you can do this task?

  1. #1
    Registered User
    Join Date
    Apr 2017
    Posts
    1

    Question Whether you can do this task?

    Please do this task, for you is probably easy but I'm stupid ...
    Thanks to everyone who help me.

    Waterpolo player Jimmy participate in preparations for the competition for a period of N days. The first day of preparation Jimmy swim a meter, and every next day for D meters more than the previous day. Write a program that determines how much Jimmy meters swim on the last day of preparation.

    Enters

    the three integers, each in a separate line of standard input. Numbers respectively represent the number of days that the preparation last N
    (N≤20), how many meters Jimmy swim first day of the preparation of A (a≤3000), how many meter every day Jimmy more floats in relation to previous day D (d≤1000)

    Exit

    In the standard output display how many meters Jimmy swim on the last day of preparation

    Example

    entrance

    10
    500
    100

    Exit

    1400
    Last edited by rale.pop; 04-21-2017 at 08:06 AM. Reason: I forgotten to add task, im retarded probably...

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,714
    https://cboard.cprogramming.com/c-pr...uncements.html
    This isn't a homework on demand service.

    You need to make an effort by yourself first.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4,068
    Ignorant and lazy are NOT the same as stupid.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,068
    Quote Originally Posted by boredsatan View Post
    Isn't this a forum to help others?
    Yep, and, I helped the OP by explaining that stupid is not the same as ignorant and lazy.

    In order to fix a problem, it is easier to succeed with a good description of the problem then a bad description.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    850
    To both @boredsatan & @stahta01:

    Please reread @Salem's response#2 above!

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    4,068
    Quote Originally Posted by rstanley View Post
    To both @boredsatan & @stahta01:

    Please reread @Salem's response#2 above!
    Please read the first line of the original poster's post.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help me with the task please :3
    By flakee in forum C Programming
    Replies: 3
    Last Post: 03-28-2016, 08:20 AM
  2. Replies: 2
    Last Post: 12-31-2007, 11:40 AM
  3. Task Bar
    By cfrost in forum Windows Programming
    Replies: 1
    Last Post: 07-22-2004, 07:37 AM
  4. task bar
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 03-21-2002, 05:53 PM
  5. Using The 'Task Bar'?!?!
    By minime6696 in forum Windows Programming
    Replies: 2
    Last Post: 01-13-2002, 04:30 PM

Tags for this Thread