🔒 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
  • 511
    Views
  • 4
    Participants
Last reply from:
Arcturus

Trending Topics

Online now

Members online
1,165
Guests online
2,044
Total visitors
3,209

Forum statistics

Threads
2,288,595
Posts
29,052,704
Members
1,214,195
Latest member
Mali ski 0
Back
Top