The program that will print (SQUARE) of first 10 natural numbers using while loop is given below.
<h3>What is the code that returns the above result?</h3>
The program that returns the above result is:
public class KboatNaturalNumbers
{
public static void main(String args[]) {
int n = 1;
int sum = 0;
while (n <= 10) {
System.out.println(n);
sum = sum + n;
n = n + 1;
}
System.out.println("Sum = " + sum);
}
}
<h3>What is a loop?</h3>
A loop is a set of instructions that are repeatedly carried out until a specific condition is met in computer programming.
In most cases, a given procedure, such as collecting data and changing it, is followed by a condition check, such as determining whether a counter has hit a predetermined number.
Learn more about loops:
brainly.com/question/26568485
#SPJ1
A string variables??? I'm not sure does this have any multiple choice
One of the things that are a challenge, is that you have to get the correct puntuation, correct capitilization, because it's a buisness email. You ont want to mess a buisness email up. You also have to have no repating phrases and sentences. You can't be adding random words and saying "and" all the time.