"fafner" wrote:I usually don't put mathematical formulae in sentences, because of this kind of problem
And if Y, a, h, and o are undefined, it doesn't yield 0. I think the end result would look more like thatCode: Select all
yahoo.c:1:39: error: 'Y' undeclared (first use in this function)
yahoo.c:1:41: error: 'a' undeclared (first use in this function)
yahoo.c:1:43: error: 'h' undeclared (first use in this function)
yahoo.c:1:45: error: 'o' undeclared (first use in this function)
Why not just ask what Yahoo is before using it?
Code: Select all
System.out.println("What is Yahoo? ");
String yahoo = scan.nextLine();
System.out.println("Yahoo is " + yahoo);