if statement missing )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • taher2014
    New Member
    • May 2014
    • 2

    if statement missing )

    Code:
    for(u2=0;u2<10000000;u2++)
             scanf("%4f",rand()/32768);
             if(0=<u2)&&(u2<=0.333)
             t2=4+sqrt(3*u2);
    	 else
    	 if(0.333=<u2)&&(u2<=1)
             t2=7-sqrt(6-6*u2);
    Last edited by Banfa; May 15 '14, 10:39 AM.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Please don't post code without a proper explanation of your issue.

    The condition in an if statement must be enclosed in ( ... ) but the ones in your code aren't.

    Comment

    Working...