mirror of
https://github.com/This-weiyuqing/javaAutoScore.git
synced 2026-10-17 18:55:31 +08:00
12 lines
279 B
Java
12 lines
279 B
Java
package autoScore;
|
|
|
|
public class score {
|
|
public static int getScore (int score,char choose,char anwser){
|
|
if (choose ==anwser ) {
|
|
score++;
|
|
return score;
|
|
}else {
|
|
return score;
|
|
}
|
|
}
|
|
} |