n = int(input("How many numbers do you need to check? "))
odd = 0
even = 0
i = 0
while i < n:
num = int(input("Enter number: "))
if num % 2 == 0:
even += 1
print(str(num)+" is an even number")
else:
odd += 1
print(str(num)+" is an odd number")
i += 1
print("You entered "+str(even)+" even number(s).")
print("You entered "+str(odd)+" odd number(s).")
I hope this helps!
Answer:
Explanation:
If an OS is using paging with offsets needing 12 bits, give the offset (in decimal or hexadecimal) to: the third word on a page the last word on a page.
Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
double n;
cout<<"Enter a decimal number: ";
cin>>n;
int Round= floor((n- floor(n))*2);
if(Round==0)
{
n= floor(n);
}
else n= ceil(n);
cout<<n;
return 0;
}
what is the meaning to this??