Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
string in;//string in for taking input...
cout<<"Do you want to continue ?"<<endl;
getline(cin,in);//taking input from the user...
if(in=="y"||in=="Y"||in=="yes"||in=="OK"||in=="Why not?")//conditions..
cout<<"OK"<<endl;
else if(in=="No")
cout<<"terminating"<<endl;
else
cout<<"Bad input"<<endl;
return 0;
}
Explanation:
I have taken a string in.
Then taking input from user.
Checking the conditions using if else if ladder.
Answer:
rsort()
Explanation:
the sorting function is used to sort the elements in the array.
the sorting can be increasing or decreasing, depends on the function used.
let discuss the option:
a. sort()
this is the sorting function, it used to sort the array in ascending order.
b. arsort()
this is also sorting function, it used to sort the associated array in descending order according to the value.
d. asort()
this is also sorting function, it used to sort the associated array in ascending order according to the value.
c. rsort()
this is the sorting function, it used to sort the array in descending order.
Therefore, the correct answer is rsort().
Answer:
1. Input() is the correct answer
2.Most programming languages have a data type called a string, which is used for data values that are made up of ordered sequences of characters, such as "hello world". A string can contain any sequence of characters, visible or invisible, and characters may be repeated. ... A string can be a constant or variable .
3.The int() function converts the specified value into an integer number.
4.CandyCost = int(input("How much is the candy?"))
5.int()
ANSWERS
To create a directory, you can use the command mkdir. Below is an example:
mkdir /var/oracle/database/9i
<span>You can use the ADVANCED tab in the font dialog box to change the scale of selected characters, to alter the spacing between characters, or to raise or lower the characters.</span>