answersLogoWhite

0

public class PrintValues {

public static void main(String[] args) {

for (int i = 1; i <=20; i++) {

System.out.println("Value is: " + i);

int sq = i * i;

System.out.println(i + " Squared is: " + sq);

}

}

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

What you the difference between a program and an app?

Its Application, not app, app just sounds so..... I dont know... Anyway, a program could just be a command line utility or any executable code basically. An Application is generally a complete bundle, with a GUI, etc. Every application has an executable program somewhere inside though, along with the images, sounds, etc.


How do you link a programming with other programming languages?

This is done via a call sequence. The syntax is different between languages but the process is about the same. The calling program issues a call to the called program and passes data items known as arguments. These arguments are used to instruct the called program on what actually to do. After the called program has completed its function it passes these arguments back to the calling program along with a return code to inform the calling program everything was ok, or not ok.


How old is the Easytrieve programming language?

I conceived the program in 1966 and worked on it as a spare time project. We contracted with them to market our program and they did extremely well. Sales increased exponentially and in December 1979, Pansophic purchased Easytrieve along with a 5-year maintenance agreement. A patent application for Easytrieve was filed in 1971 and was granted 10 years later6


At what degrees on the sine wave is the voltage equal to zero?

On a sine wave, the voltage is equal to zero at every integer multiple of 180 degrees. This occurs at 0 degrees, 180 degrees, 360 degrees, and so on. These points represent the crossings of the waveform along the horizontal axis, where the sine function equals zero.


Write a c program to add all numbers between 100 and 200 which contain the digit 5 along with steps?

#include int main(void){int a;for(a=100;a

Related Questions

What prints along with the text of an outline when printing in expanded view?

slide icon and slide number


Why is this program so?

this program is for asking question then u have to wait along time for your answer sometimes XD


What is telly selling?

A TV program showing goods that can be purchased by ringing up the company along side the program.


How do you calculate velocity final with distance and acceleration?

aSsuming constant acceleration, and movement along a line, use the formula: vf2 = vi2 + (1/2)at2 (final speed squared equals initial speed squared plus one-half times acceleration times time squared).


How does algorithm and c plus plus program get along?

They are bosom-friends.


What has the author David Acton written?

David Acton has written: 'Along Ipswich River: The color woodcuts of Arthur Wesley Dow' 'The Stamp of Impulse' 'A spectrum of innovation' -- subject(s): American Color prints, Color prints, American, Exhibitions, Worcester Art Museum '60 years of North American prints, 1947-2007' -- subject(s): American Prints, History, Boston Printmakers, Printmakers, Exhibitions 'Sylvia Wald' -- subject(s): Exhibitions, Abstract expressionism


What is a mixed number with examples?

A mixed number consists of a integer along with a fractional part. For example 23/4 or two and three quarters.


Does Bigfoot caring for it's young?

There been prints of bigfoot with its young walking along and tracks showed that the mother kept the young one close by. Reports say the same.


What is negative 10 squared?

When we say &quot;negative 10 squared,&quot; we are asking for the result of squaring the number -10. Squaring a number means multiplying it by itself, so (-10) squared is (-10) x (-10), which equals 100. The negative sign is not squared along with the number itself; it simply indicates that the result is negative.


Is the auburn football program being investigated?

yes they are, along with asst coach trooper


What is The Drawing Center's Viewing Program?

The Drawing Center's Viewing Program offers young emerging artists the opportunity to have their work displayed in the gallery along with other famous work. This program was established in 1977.


Is the number 12 a natural number whole number integer rational number or an irrational number?

The number 12 is a natural number, a whole number, an integer, and a rational number. A natural number is a positive integer starting from 1, which includes 12. Whole numbers include all natural numbers along with zero, so 12 is also a whole number. Integers include all whole numbers along with their negatives, making 12 an integer. Lastly, a rational number is any number that can be expressed as a fraction, and 12 can be written as 12/1, making it a rational number.