Padd Solutions

Converted by Falcon Hive

import java.util.Scanner;

public class Multiples
{
    public static void main (String[] args)
    {
        Scanner OHMAHGAWD = new Scanner (System.in);
        int numbah;
        int stop = 10;
        int sum = 0;
       
        System.out.println ("Go, go enter a number~");
        numbah = OHMAHGAWD.nextInt();
       
        System.out.println ();
       
        System.out.println ("You have HOW many KIDS?!");
        for (int i = 1; i <= stop; i = i + 1)
        {
            System.out.print (numbah *i + ", ");
        }
       
        System.out.print ("!?!?!?!?");
        System.out.println ();
        for (int i = 1; i <= stop; i = i + 1)
        {
            int crap = numbah * i;
            sum += crap;
        }       
       
        System.out.println ();
       
        System.out.println ("Together, you have "+sum+ " kids. Dayum. How do you pay your bills?");
    }
}

(0) Comments

Post a Comment