Simple Translation Question/s

This is a discussion on Simple Translation Question/s within the C Programming forums, part of the General Programming Boards category; I was wondering if "Less than or equal to" is symbolized as <= or <== in code and how this ...

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    11

    Simple Translation Question/s

    I was wondering if "Less than or equal to" is symbolized as <= or <== in code and how this statement could be translated into code:

    If A is less than or equal to B and A is equal to G, then print "I'm confused"

    Can anyone help me with this?

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    Literally that:
    Code:
    if ( A <= B && A == G)
        ......
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. translation api
    By herWter in forum C Programming
    Replies: 4
    Last Post: 12-11-2008, 01:29 PM
  2. translation!!
    By impossible in forum C++ Programming
    Replies: 14
    Last Post: 05-31-2008, 05:17 PM
  3. C to C++ translation help?
    By bill.thompson65 in forum C++ Programming
    Replies: 5
    Last Post: 10-21-2007, 12:56 PM
  4. translation
    By VOX in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 07-05-2005, 06:21 PM
  5. Translation
    By GaPe in forum C Programming
    Replies: 10
    Last Post: 04-04-2002, 08:45 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21