By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,816 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,816 IT Pros & Developers. It's quick & easy.

how do I convert the following statement to C?

P: 7
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
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 9,197

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

P: 7
thank you i will try it.
Aug 15 '10 #3

Post your reply

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