how do I convert the following statement to C?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Rockett
    New Member
    • Aug 2010
    • 7

    #1

    how do I convert the following statement to C?

    The curveGR is a column of numbers
    The numbers in the statement are values to match against the curve to give the name of the mineral in this case dolomite. Dolomite is to be shown in a column beside the CurveGR with heading Mineral

    The statement is--
    if curveGR=>11.5 and curveGR <17.5 then print "dolomite"
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Maybe:

    Code:
    if (curveGR=>11.5 && curveGR <17.5)
    {
       printf ("dolomite\n"); 
    }
    I'll let you work out the print layout.

    Comment

    • Jim Rockett
      New Member
      • Aug 2010
      • 7

      #3
      thank you i will try it.
      jim

      Comment

      Working...