print the sequence

print the sequence

how can I write the code by using for loop to produce this following statement: 10,9,8,7,6,5,4,3,2,1,buzz!

please, help me

View Answers

July 29, 2012 at 5:07 PM

class loop { void main() { for (int i = 10; i>=1; i--) { System.out.print(" "+i+","); } System.out.println("buzz!"); } }


July 30, 2012 at 11:37 AM

Here is a code that displays the required sequence: 10,9,8,7,6,5,4,3,2,1,buzz!

class ForLoop {
    public static void main(String args[]) {
        for (int i = 10; i>=1; i--) {
            System.out.print(i+",");
            } 
            System.out.println("buzz!");
            }
        }

July 30, 2012 at 5:02 PM

thank you so much









Related Tutorials/Questions & Answers:
print the sequence
print the sequence  how can I write the code by using for loop to produce this following statement: 10,9,8,7,6,5,4,3,2,1,buzz! please, help me
print
print  How to print JFrame All Componant?   Please visit the following link: http://www.roseindia.net/java/example/java/swing/Print.shtml
Advertisements
Print
into the stream and, as opposed to print() method, gets you to the new line after the text
print the newline
print the newline  Why doesn?t the following code print the newline....?; print $str; ?>   Hi friends, Inside the single quotes \n (newline) is not worked as new line, just as a sequence of two characters - \ and n
ModuleNotFoundError: No module named 'sequence'
ModuleNotFoundError: No module named 'sequence'  Hi, My Python... 'sequence' How to remove the ModuleNotFoundError: No module named 'sequence... to install padas library. You can install sequence python with following
Processing Sequence of DispatcherServlet
In this section, you will get to know about the processing sequence of DispatcherServlet
HIbernate call for sequence - Hibernate
HIbernate call for sequence  I have created a sequence in oracle table. Now how to access this in java class through hibernate from dual table i am... the sequence using dual table. Thanks in advance
Sequence generator problem - JDBC
Sequence generator problem  Dear sir, I have created one table by name massemailsendingdetails. CREATE TABLE MASSEMAILDETAILS( ID...) ); Then i created a sequence generator for an id as follows CREATE SEQUENCE
ModuleNotFoundError: No module named 'sequence-field'
ModuleNotFoundError: No module named 'sequence-field'  Hi, My... named 'sequence-field' How to remove the ModuleNotFoundError: No module named 'sequence-field' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sequence-tagging'
ModuleNotFoundError: No module named 'sequence-tagging'  Hi, My... named 'sequence-tagging' How to remove the ModuleNotFoundError: No module named 'sequence-tagging' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'idempotent-sequence'
ModuleNotFoundError: No module named 'idempotent-sequence'  Hi, My... named 'idempotent-sequence' How to remove the ModuleNotFoundError: No module named 'idempotent-sequence' error? Thanks   Hi
ModuleNotFoundError: No module named 'nxpy-sequence'
ModuleNotFoundError: No module named 'nxpy-sequence'  Hi, My... 'nxpy-sequence' How to remove the ModuleNotFoundError: No module named 'nxpy-sequence' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sequence_aligner'
ModuleNotFoundError: No module named 'sequence_aligner'  Hi, My... named 'sequence_aligner' How to remove the ModuleNotFoundError: No module named 'sequence_aligner' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'sequence-builder'
ModuleNotFoundError: No module named 'sequence-builder'  Hi, My... named 'sequence-builder' How to remove the ModuleNotFoundError: No module named 'sequence-builder' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'sequence-folder'
ModuleNotFoundError: No module named 'sequence-folder'  Hi, My... named 'sequence-folder' How to remove the ModuleNotFoundError: No module named 'sequence-folder' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'print_print'
ModuleNotFoundError: No module named 'print_print'  Hi, My Python... 'print_print' How to remove the ModuleNotFoundError: No module named 'print_print' error? Thanks   Hi, In your python environment
print a form of *
print a form of *   * *** ***** ******* ********* ******* ***** *** *   Post the format properly
Print Button
Print Button  i want the source code for printing details of jform.. so plz help me for source code of print button
DNA sequence - Java Beginners
DNA sequence  Write a java program to read a file that contains DNA sequences of arbitrary length one per line (note that each DNA sequence is just a String). Your program should sort the sequences in descending order
print numbers
print numbers  1234 123 12 1234   1234 123 12 1234
Print the document
Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width...;Print Window</title>'); printWindow.document.write('</head>
Print the document
Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width...;Print Window</title>'); printWindow.document.write('</head>
Print a statement
Print a statement  hello what would we output for this statement System.out.println ("5"+"A" + 3);   helloADS_TO_REPLACE_1 output will be 5A3
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
diamond print
diamond print   print the pattern 1 2 3 4 5 6 7 8 9 10 11 12
print initials
print initials  How to print initials of a name without using arrays?   Hi Friend, You can try the following code:ADS_TO_REPLACE_1 import java.util.*; public class InitialName { public static void main(String
To print initials
To print initials  import java.util.Scanner; class initials { String a ; int e ; char f ; int b ; int c ; char d; Scanner sc = new Scanner(System.in); void main
Print command
Print command  Can I use System.out.println command in Struts form bean or Struts action class. I am using Struts 1.3.8 but when I write this command. It does not work. Please reply me as soon as possible. Thanks.   
ModuleNotFoundError: No module named 'lazy-paged-sequence'
ModuleNotFoundError: No module named 'lazy-paged-sequence'  Hi, My... named 'lazy-paged-sequence' How to remove the ModuleNotFoundError: No module named 'lazy-paged-sequence' error? Thanks   Hi
ModuleNotFoundError: No module named 'lazy-paged-sequence'
ModuleNotFoundError: No module named 'lazy-paged-sequence'  Hi, My... named 'lazy-paged-sequence' How to remove the ModuleNotFoundError: No module named 'lazy-paged-sequence' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo10-addon-account-analytic-sequence'
ModuleNotFoundError: No module named 'odoo10-addon-account-analytic-sequence...: ModuleNotFoundError: No module named 'odoo10-addon-account-analytic-sequence' How...-analytic-sequence' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo10-addon-base-partner-sequence'
ModuleNotFoundError: No module named 'odoo10-addon-base-partner-sequence' ...: ModuleNotFoundError: No module named 'odoo10-addon-base-partner-sequence' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-base-partner-sequence
ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence'
ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence'
ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence'
ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-expense-sequence'
ModuleNotFoundError: No module named 'odoo10-addon-l10n-es-account-invoice-sequence'
-sequence'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'odoo10-addon-l10n-es-account-invoice-sequence...;odoo10-addon-l10n-es-account-invoice-sequence' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo10-addon-product-sequence'
ModuleNotFoundError: No module named 'odoo10-addon-product-sequence'  ...: No module named 'odoo10-addon-product-sequence' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-product-sequence' error
ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit'
ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit' ...: ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit'
ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range'
ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range' ...: ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range'
ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit'
ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit' ...: ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-sequence-check-digit'
ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range'
ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range' ...: ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-sequence-date-range'
ModuleNotFoundError: No module named 'odoo11-addon-account-analytic-sequence'
ModuleNotFoundError: No module named 'odoo11-addon-account-analytic-sequence...: ModuleNotFoundError: No module named 'odoo11-addon-account-analytic-sequence' How...-analytic-sequence' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo11-addon-account-analytic-sequence'
ModuleNotFoundError: No module named 'odoo11-addon-account-analytic-sequence...: ModuleNotFoundError: No module named 'odoo11-addon-account-analytic-sequence' How...-analytic-sequence' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo11-addon-base-partner-sequence'
ModuleNotFoundError: No module named 'odoo11-addon-base-partner-sequence' ...: ModuleNotFoundError: No module named 'odoo11-addon-base-partner-sequence' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-base-partner-sequence
ModuleNotFoundError: No module named 'odoo11-addon-hr-expense-sequence'
ModuleNotFoundError: No module named 'odoo11-addon-hr-expense-sequence' ...: ModuleNotFoundError: No module named 'odoo11-addon-hr-expense-sequence' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-hr-expense-sequence'
ModuleNotFoundError: No module named 'odoo11-addon-l10n-es-account-invoice-sequence'
-sequence'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'odoo11-addon-l10n-es-account-invoice-sequence...;odoo11-addon-l10n-es-account-invoice-sequence' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo11-addon-maintenance-equipment-sequence'
-sequence'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'odoo11-addon-maintenance-equipment-sequence...-maintenance-equipment-sequence' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'odoo11-addon-maintenance-equipment-sequence'
-sequence'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'odoo11-addon-maintenance-equipment-sequence...-maintenance-equipment-sequence' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'odoo11-addon-maintenance-request-sequence'
ModuleNotFoundError: No module named 'odoo11-addon-maintenance-request-sequence...: ModuleNotFoundError: No module named 'odoo11-addon-maintenance-request-sequence...-maintenance-request-sequence' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo11-addon-product-sequence'
ModuleNotFoundError: No module named 'odoo11-addon-product-sequence'  ...: No module named 'odoo11-addon-product-sequence' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-product-sequence' error

Ads