Computer files containing nothing but printable characters are called text files<span>.</span>
Answer:
x = int(input("Enter an integer: "))
y = int(input("Enter another integer: "))
if x > y:
for number in range(y+1, x):
print(number, end=" ")
elif y > x:
for number in range(x+1, y):
print(number, end=" ")
else:
print("There are no integers between {} and {}".format(x, y))
Explanation:
*The code is in Python.
Ask the user to enter the two integers, x and y
Since we want our program to run regardless of which entered value is larger, we need to compare the numbers to be able to create the loop that prints the numbers.
Check if x is greater than y. If it is, create a for loop that iterates from y+1 to x-1 and print the numbers
Otherwise, check if y is greater than x. If it is, create a for loop that iterates from x+1 to y-1 and print the numbers
If none of the previous part is executed, print that there are no integers between
Answer:
A computer is a machine that can be programmed to carry out sequences of arithmetic or logical operations automatically. Modern computers can perform generic sets of operations known as programs. These programs enable computers to perform a wide range of tasks.Computers are used to control large and small machines which in the past were controlled by humans. Most people have used a personal computer in their home or at work. They are used for things such as calculation, listening to music, reading an article, writing etc.
Computers are used at homes for several purposes like online bill payment, watching movies or shows at home, home tutoring, social media access, playing games, internet access, etc. ...
Medical Field. ...
Entertainment. ...
Industry. ...
Education. ...
Government. ...
Banking. ...
Business.
BRAINLIEST PLEASE
Answer:
#include <iostream>
using namespace std;
void filterEvens(int myArray[]) {
for (int i = 0; i < 8; ++i) {
if(myArray[i]%2==0){
cout<<myArray[i]<<" ";
}
}
}
int main(){
int myArray[8];
for(int i =0;i<8;i++){
cin>>myArray[i];
}
filterEvens(myArray);
return 0;
}
Explanation:
The solution is provided in C++
#include <iostream>
using namespace std;
The function filerEvens is defined here
void filterEvens(int myArray[]) {
This iterates through the elements of the array
for (int i = 0; i < 8; ++i) {
This checks if current element is an even number
if(myArray[i]%2==0){
If yes, this prints the array element
cout<<myArray[i]<<" ";
}
}
}
The main begins here
int main(){
This declares an integer array of 8 elements
int myArray[8];
The following iteration allows input into the array
<em> for(int i =0;i<8;i++){</em>
<em> cin>>myArray[i];</em>
<em> }</em>
This calls the defined function filter Evens
filterEvens(myArray);
return 0;
}