Thread: How to Give More Inputs to My C Program

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    10

    How to Give More Inputs to My C Program

    When I am Writing a C Program It Was Compiled & Executed!!
    But I Having a Problem with the Inputs In my Compiler..
    When I Compile my Program by Pressing CTRL+F9 It Will Go to the Compiler & When I Give Inputs Then Output Would be Come..

    The Actual Problem is After Getting Output I Press ENTER Key It Will Go to the Source Code

    How to Give Multiple (More Than 1) Inputs My C Program???
    Please Help Me
    -Thank You

    How to Give More Inputs to My C Program-code-jpg
    How to Give More Inputs to My C Program-compiler-jpg
    Last edited by NBK Rules; 03-26-2013 at 11:37 PM.

  2. #2
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    Quote Originally Posted by NBK Rules View Post
    How to Give Multiple (More Than 1) Inputs My C Program???
    You need a loop around your input part.

    Are you really still using a DOS computer?

    Bye, Andreas

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    OMG, that compiler is probably even older than I am!
    Why why WHY... gah, too gobsmacked to even finish the question...
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Registered User
    Join Date
    Mar 2013
    Posts
    10
    Quote Originally Posted by AndiPersti View Post
    You need a loop around your input part.

    Are you really still using a DOS computer?

    Bye, Andreas
    I Will Overcome This Problem by Using a Function Call!! Thank u For Your Suggestions !!

  5. #5
    Registered User
    Join Date
    Mar 2013
    Posts
    10
    Quote Originally Posted by iMalc View Post
    OMG, that compiler is probably even older than I am!
    Why why WHY... gah, too gobsmacked to even finish the question...
    OMG..Suggest Me A Better Comiler IMalc Sir

  6. #6
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Nothing else need to be said.
    Last edited by GReaper; 03-27-2013 at 07:46 AM.
    Devoted my life to programming...

  7. #7
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Quote Originally Posted by NBK Rules View Post
    OMG..Suggest Me A Better Comiler IMalc Sir
    All the rest!
    I personally still mainly use VS2008Express at home, and some say that is a bit old now.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calculator Program To Allow User 3 Inputs
    By Interista in forum C Programming
    Replies: 14
    Last Post: 10-19-2011, 11:11 AM
  2. How to handle inputs if the user inputs the wrong thing
    By bassist11 in forum C Programming
    Replies: 5
    Last Post: 09-22-2010, 04:28 AM
  3. Replies: 9
    Last Post: 10-10-2009, 03:14 PM
  4. Replies: 1
    Last Post: 10-23-2005, 11:08 PM
  5. program is checking for ent when user inputs out?
    By Blizzarddog in forum C++ Programming
    Replies: 1
    Last Post: 04-07-2003, 01:16 PM

Tags for this Thread