So, like, <span>the theory and development of computer systems able to perform tasks that normally require human intelligence, such as visual perception, speech recognition, decision-making, and translation between languages is what AI is.
Hope this Helps!</span>
Explanation:
what's the question? I need the problem
Answer:
In this question the ans variable data-type is int,that is wrong.
Explanation:
In the above code the ans variable int that is used for taking integer value. and In the switch statement, we pass the value that is character so the program will give the error. To solve this error we will declare the ans variable as char and taking input from the scanner class like this (ans = scan.next().charAt(0); )where ans is variable, scan is the object of scanner class and next().charAt(0) is used to take input. that is store in ans variable.