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
Dhruv should be more careful while using internet in a public place
Answer:
The correct option to the following question is D.).
Explanation:
SDLC stands for the System Development Life Cycle.
The aim of the SDLC is to produce the high quality of the software that exceeds or meets the reaches completions and customers' expectations with costs and time expectations.
Software Development Life Cycle is the frameworks that defining the task performed at each of the steps in software development process.
Answer:
writing one in comments bec i don't have time for both sorry