Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
int main() {
// variable
int num;
cout<<"Enter the number between 20 and 98: ";
// read number
cin >> num;
while(num<20||num>98)
{
cout<<"Wrong input!!enter number between 20-98 only:";
cin>>num;
}
cout<<"The output is: ";
while(num % 10 != num /10)
{
// print numbers.
cout<<num<<" ";
// update num.
num--;
}
// display the number.
cout<<num<<endl;;
return 0;
}
Explanation:
Read a number from user and assign it to variable "num".Check if entered number is in between 20-98 or not.If input number is less than 20 or greater than 98 then ask again to enter a number between 20-98 until user enter a valid input.Then print the countdown from input number till both the digit of number are same.
Output:
Enter the number between 20 and 98: 99
Wrong input!!enter number between 20-98 only:12
Wrong input!!enter number between 20-98 only:93
The output is: 93 92 91 90 89 88
Enter the number between 20 and 98: 77
The output is: 77
Answer:
trackball
Explanation:
A trackball can be seen on a mouse.
Answer:
As a high-quality communication system, online games provide a virtual world where gamers communicate with each other by using rich interactive multimedia. This would facilitate communication among online gamers and enhance the development and maintenance of interpersonal relationships.
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
operation = input("Which operation are you performing? (a/s/m/d) ")
if operation == "a":
print("{} + {} = {}".format(num1, num2, num1+num2))
elif operation == "s":
print("{} - {} = {}".format(num1, num2, num1-num2))
elif operation == "m":
print("{} * {} = {}".format(num1, num2, num1*num2))
elif operation == "d":
print("{} / {} = {}".format(num1, num2, num1/num2))
I hope this helps!
Answer:
20
Explanation:
assuming the print statement is not indented, the program effectively calculates 2+5+6+7.
The range(...) is <em>excluding </em>the end value (8 in this case).