Professional Documents
Culture Documents
Government Polytechnic, Washim Maharashtra State Board of Technical Education, Mumbai Washim, Maharashtra 444505
Government Polytechnic, Washim Maharashtra State Board of Technical Education, Mumbai Washim, Maharashtra 444505
A Project Report On
“ Guessing game ”
Guided By :-
Prof. M.S.Hule
Submitted By :-
………………………
Prof. M.S.Hule
Index
content Page no
Sr no
1 ACKNOWLEDGEMEN 1
T
2 Introduction 2-3
3 Source code 4
4 output 5
5 Refrences 6
ACKNOWLEDGEMENT
Displaying score.
/* Java game Guess a Number that allows user to guess a random number that has
been generated.
*/
import javax.swing.*;
public class Guessinggame {
public static void main(String[] args) {
int computerNumber = (int) (Math.random()*100 + 1);
int userAnswer = 0;
System.out.println("The correct guess would be " + computerNumber);
int count = 1;