🔒 Closed Pahelp po java program

Status
Not open for further replies.
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
  • 531
    Views
  • 4
    Participants
Last reply from:
Arcturus

Trending Topics

Online now

Members online
972
Guests online
9,279
Total visitors
10,251

Forum statistics

Threads
2,354,361
Posts
29,383,384
Members
1,079,426
Latest member
losN0stras
Back
Top