469,319 Members | 2,421 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

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"
Aug 14 '10 #1
2 1249
weaknessforcats
9,208 Expert Mod 8TB
Maybe:

Expand|Select|Wrap|Line Numbers
  1. if (curveGR=>11.5 && curveGR <17.5)
  2. {
  3.    printf ("dolomite\n"); 
  4. }
I'll let you work out the print layout.
Aug 14 '10 #2
thank you i will try it.
jim
Aug 15 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by wenmang | last post: by
9 posts views Thread by photomonkey | last post: by
3 posts views Thread by ooze | last post: by
16 posts views Thread by NetPointer | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.