hi everyone
this is my code.

public class Qustion3B{
 
public static void main (String args[]){

 double sinx = Math.sin(0.5236);
 double cosx = Math.cos(0.5236);

sinx = Math.pow(0.5236,2);
cosx = Math.pow(0.5236,2);
double sum=sinx+cosx;

System.out.println("sine: " + sinx+"cosine: " + cosx +"sum: " + sum );
}
}

it continue to show me that i have mistake in (pow.,) but i can't see it.
:(
please help me

thats weird..
i tried to run it on other computer,
it works now
thank you

Please help me in this java code - this is urgent

import java.io.*;
class cond
{
int a,b;
InputStreamReader I = new InputStreamReader (System.in);
BufferedReader br = new BufferedReader(I);
Void Accept()throws IOException
{
System.out.println("Enter 2 numbers");
a=Integer.parseInt(br.readLine());
b=Integer.parseInt(br.readLine());
}
Void Condition()
{
if(a==b)
System.out.println("They are equal--dono ek hi hai yaar!");
if(b<a)
System.out.println("A is greater than B--A, B se adhik hai");
if(a<b)
System.out.println(a+"is greater than"+b);
}
public static void main(String args[]) throws IOException
{
cond C = new cond();
C.Accept();
C.Condition();
}
}

Comments
Not urgent - don't hijack old threads with unrelated questions.

hello Mangala_jois
you used V instead of a v in "void"
and u have a logical error
use this which is a slight modificatin of your code..

if(a==b)
System.out.println("They are equal--dono ek hi hai yaar!");
else if(b<a)
System.out.println("A is greater than B .... A, B se adhik hai");
else
System.out.println(b+"is greater than"+a);

This question has already been answered. Start a new discussion instead.