Skip to content
View 25015317's full-sized avatar
  • Joined Mar 6, 2025

Block or report 25015317

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
25015317/README.md

package com.mycompany.myproject;

import java.util.Scanner; public class Dollars {

public static void main(String[] args) {
    int amount;
    Scanner sc=new Scanner(System.in);
    System.out.println("Enter amount:");
    amount=sc.nextInt();
    
    int twenty=amount/20;
    int ten=(amount-20*twenty)/5;
    int five=(amount-(20*twenty+10*ten))/5;
    
    int one=(amount-(20*twenty+10*ten+5*five))/1;
    //int two=(amount-(20*twenty+10*ten+5*five))/2;
    System.out.println("$"+amount+"converted is"+twenty+"$20s,"+ten+"$10s,"+five+"$5s, and"+one+"$1s.");
    
}

}

Popular repositories Loading

  1. Muele-28 Muele-28 Public

    My first project

  2. 25015317 25015317 Public

    Config files for my GitHub profile.