Thread: while statement

  1. #1
    Registered User
    Join Date
    Jun 2020
    Posts
    1

    while statement

    hi , i'm just learning c , i have a question ; how can i write more than 1 condition in while statement to test? is it possible to use & in condition test place ?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    27,850
    Yes, but you probably want && instead of bitwise &
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-23-2020, 12:03 PM
  2. 'If' Statement inside the Switch statement being ignored.
    By howardbc14 in forum C Programming
    Replies: 4
    Last Post: 04-11-2015, 11:45 AM
  3. for statement
    By spazx in forum C Programming
    Replies: 6
    Last Post: 02-02-2012, 07:21 PM
  4. Statement inside a statement.
    By JOZZY& Wakko in forum C Programming
    Replies: 15
    Last Post: 11-05-2009, 03:18 PM
  5. if statement
    By xlordt in forum C Programming
    Replies: 7
    Last Post: 04-11-2003, 08:06 AM

Tags for this Thread