1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lara31 [8.8K]
1 year ago
12

write (define) a public static method named countup, that takes one int argument and returns no value. you can safely assume tha

t the argument will always be a positive integer. when this method is called, it should print a count from 1 up to (and including) the argument value.
Computers and Technology
1 answer:
tester [92]1 year ago
7 0

Using the knowledge of computational language in python it is possible to write a code that write (define) a public static method named countup, that takes one int argument and returns no value.

<h3>Writting the code:</h3>

<em>public class </em><em>Main</em>

<em>{</em>

<em>public static void main(</em><em>String</em><em>[] args) {</em>

<em>// testing the method </em><em>countDown </em><em>with values 5, 6, 1</em>

<em>countDown(5);</em>

<em>System.out.println();</em>

<em>countDown(6);</em>

<em>System.out.println();</em>

<em>countDown(2);</em>

<em>System.out.println();</em>

<em>}</em>

<em />

<em>public static void </em><em>countDown</em><em>(int num)</em>

<em>{</em>

<em>for (int i=1 ; i<=num ; i++) // for </em><em>loop </em><em>iterates from 1 to num</em>

<em>{</em>

<em>System.out.print(i+","); // prints num followed by comma ,</em>

<em>}</em>

<em>}</em>

<em>}</em>

See more about JAVA at brainly.com/question/12975450

#SPJ1

You might be interested in
What type of traffic always goes to all devices in a subnet?
zmey [24]
There are three types of traffic in an IP network:
1. Unicast -  one-to-one traffic (traffic from one sender to one receiver) 
2. Multicast - one to many traffic (one sender and more receivers) 
3.Broadcast -  every device in the network will receive the packet
So, the broadcast traffic <span>always goes to all devices in a subnet. </span>
6 0
3 years ago
An oligopoly is a unique market structure. Which of the following is NOT necessary to have a oligopolistic market structure?
Annette [7]
I would say A 
hope this helped ;)
sorry if im wrong 
7 0
3 years ago
PLSSS HELP!! During the late 20th century, immigration to the United States increased dramatically from
AysviL [449]

Answer:

The correct answer is 3. Asia and Latin America.

Explanation:

America has historically been, and continues to be, one of the main arrival points for migrants from all regions of the world, mainly due to the security and political and economic stability that the United States offers its citizens. In recent years, the main regions that have sent immigrants to the United States have been Asia (Southeast Asian nations, such as Vietnam, the Philippines; authoritarian countries such as China or extremely poor such as India) and Latin America (especially Mexico, Honduras, El Salvador, Guatemala and Nicaragua).

8 0
3 years ago
A blueprint or a "print" needs to
PilotLPTM [1.2K]
Have enough information to build something
8 0
2 years ago
Dead state is the name of the time delay in a cpu caused by differences between the speed of the cpu and ram.
ipn [44]
The answer is <span>wait state.  </span><span> Dead state is NOT the name of the time delay in a cpu caused by differences between the speed of the cpu and ram.  Wait state </span><span>is the name of the time delay in a CPU caused by differences between the speed of the CPU, the system bus, and memory circuits.</span>
4 0
3 years ago
Other questions:
  • 7. Write a program in C to display the string "ARRAY" in the following format : A AR ARR ARRA ARRAY
    5·1 answer
  • What is the most common drive letter where window stores most data and programs. 1,a 2,b 3,c 4,e
    9·1 answer
  • Server 2016 is compatible for Powershell 5.0 State True or False.
    7·1 answer
  • How does acceleration differ from velocity?
    15·1 answer
  • Which type of financial institution typically has membership requirements?
    9·2 answers
  • ফাইল ও ফোল্ডারের মধ্যে পার্থক্য কি এবং ৫ টি ইনপুট ডিভাইসের নাম কি​
    7·2 answers
  • What happens when you run a program in Python? ​
    12·2 answers
  • Which of the following responses is the best example of a problem that can be solved using a computer program?
    6·2 answers
  • Draw the following diagrams to represent the information system chosen in assignment 1 Context diagram The context diagram is ex
    12·2 answers
  • You have an application running on multiple ec2 instances, however every time an instance fails, your users complain that they l
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!