Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Java/Task-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import java.util.Scanner;

public class studentFee {
public static void main(String arsg[]){
Scanner scanner=new Scanner(System.in);
System.out.println("Enter your enrolled hours :");
int hour=scanner.nextInt();
System.out.println("Enter your book's spent:");
int Bspent=scanner.nextInt();
int total = (hour*85)+Bspent+65;
System.out.println("Total student fee: "+total);

}
}