Inches are the unit of measurements on a disk
Answer:
#include<iostream>
using namespace std;
int main (){
int n1, n2;
cout<<"Enter 1st number";
cin>>n1;
cout<<"Enter 2nd number";
cin>>n2;
if(n1<n2){
cout<<"The 1st number is the smallest"<<endl<<" is= "<<n1;
}
else{
cout<<"The 2nd number is the smallest"<<endl<<" is= "<<n2;
}
}
return 0;
Answer:
public static void removeInRange(List<Integer> list, int value, int start, int end) {
for (int i = end - 1; i >= start; i--) {
if (list.get(i) == value) {
list.remove(i);
}
}
System.out.println(list);
}
Explanation:
- Create a method named <em>removeInRange</em> that takes four parameters, a list, an integer number, a starting index and an ending index
- Inside the method, initialize a <u>for loop</u> that iterates between starting index and ending index
- If any number between these ranges is equal to the given <em>value</em>, then remove that value from the list, using <u>remove</u> method
- When the loop is done, print the new list
D. Workbook
Hope this helps
With 8<span> bits used to represent each color value, one pixel requires </span>24<span> bits. The number of colors available in a graphic is referred to as color depth. I hope you understand! :-)</span>