๐Ÿ”’ Closed Pahelp po java program

Status
Not open for further replies.

Phc-AJDS

Eternal Poster
write a program that will ask the user to enter its student's full name and its subject and will ask what grade to enter. It will be displayed as
Good Day! your student [Surname], [Firstname] [Middlename] from [subject] got[grade].
 
Madali lang to e, try mo muna kaya lods tas i post mo code mo dito if may error man,

Ganto lang logic jn

Naka store sa variable ung mga input tapos i sytem.out.print mo lng lahat
 
pwede pahelp boss
import java.util.Scanner; // Import the Scanner class

class Main {
public static void main(String[] args) {
Scanner myObj = new Scanner(System.in); // Create a Scanner object
System.out.println("Enter username");

String userName = myObj.nextLine(); // Read user input
System.out.println("Username is: " + userName); // Output user input
}
}


gawin mong reference to, pag number na ung iiinput gawin mo int
 
Status
Not open for further replies.

About this Thread

  • 6
    Replies
  • 442
    Views
  • 4
    Participants
Last reply from:
Arcturus

Online now

Members online
1,056
Guests online
994
Total visitors
2,050

Forum statistics

Threads
2,277,032
Posts
28,973,829
Members
1,229,693
Latest member
riogab
Back
Top