- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
2 Posted Topics
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Order Item - Using PHP Arrays</title> <style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } .style1 { color: #FF6600} .style2 { color: #660033} .error { background-color:#FF0000; color: #FFFFFF; font-style:italic; text-align:center; font-size:13px; … | |
Re: [code]import java.io.*; public class Divisibility{ public static void main(String[] args) throws IOException{ String answer; do { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter start number:"); int i = Integer.parseInt(input.readLine()); System.out.println("Enter end number:"); int j = Integer.parseInt(input.readLine()); for (i= i; i<=j; i++){ System.out.println(); System.out.print(i+ " is divisible by "); int d=1; … |