kealinwiley
29.02.2020 •
Computers and Technology
Write a single statement that declares a reference variable of type Integer named myInt, creates an object of type Integer with the initial value of 75, and assigns it to the reference variable.
Solved
Show answers
More tips
- H Health and Medicine How to Help Men Gain Weight?...
- A Auto and Moto Discovering the Leader: What is the Most Expensive Car in the World?...
- H Health and Medicine Hangover: How to Get Rid of It Quickly?...
- S Style and Beauty How to Choose the Right Fur Coat and Avoid Regrets?...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
Answers on questions: Computers and Technology
- C Computers and Technology What is the difference, if any, between the end user and the target audience of a digital media piece? A. The end users and the target audience are the exact same group of people....
- M Mathematics Please answer im in a test...
- B Biology Why are barriers sometimes placed on trade?...
- S Social Studies (20 Points!!) The Worcester versus Georgia determined that ___ were violated by Georgia A. Treaties B. Arms Agreements c. Amendments d. Privacy Laws...
- E English if you read something in an article that makes you think differently on a certain topic, which big question did you find?...
- E English For the word below, click on the drop-down arrows to select the root and its meaning. version root: versi, ver, sion meaning: to say, to send, to lead, to turn, to look...
- S SAT For an art project, Corinne and Amelia want to combine their colored pens and distribute them equally among 12 first graders. If Corinne has 84 colored pens and Amelia has 72...
- E English Jonas is about to learn what his Assignment will be. Choose six adjectives that you think best describe how Jonas is feeling at this moment. (The Giver)...
- M Mathematics Point A is located in which quadrant? Please help I will give brainliest:3...
- M Mathematics Help me with math, I suck at math. I do not understand this math...
Ответ:
The statement will be:
Integer myInt = new Integer (75) ;
Ответ:
This program has been written using JAVA. The code is written beloe:
// import library
import java.util.Scanner;
public category Main operate
public static void main(String[] args)
{
// scanner category
Scanner scan=new Scanner(System.in);
System.out.println("Enter Number:");
int n=scan.nextInt();
//All squares but n
System.out.println("All squares but n are: ");
int temp=0,square=0,i=0;
while(square
range
square=i*i;
if(square>=n)break;
System.out.print(square+" ");
i++;
}
//All positive numbers that are divisible by 10 but less than n
System.out.println(" ");
System.out.println(" ");
System.out.println("All positive numbers are divisible by 10 and less than n are: ");
i=1;
while(i
{
if(i%10==0)
System.out.print(i+" ");
if(i>=n)break;
i++;
}
System.out.println(" ");
System.out.println(" ");
System.out.println("All powers of 2 that are less than n are: ");
//All powers of 2 less than n
i=0;
while(i
mathematics.pow(2, i);
if(num_power
System.out.print(num_power+" ");
i++;
}
}
}
Explanation:
With SimpleWriter out and int n already declared in each case this program makes use of a while loop condition to satisfy the following;
1. All squares less than n
2. positive numbers that are divisible by 10 and less than n.
3. All powers of two less than n.