Answer:
In short names, there is Cyprus, Comoros, DRC, Morocco, Djibouti, Burundi, Togo, Congo, Fiji, and Kosovo. However if we use only official names, there is only one country on the whole planet that has no A's and E's, and that country is the Kingdom of Morocco.
Explanation:
hope it helps
Answer:
you find it in online to solve it so it is bete to lean ICT
If a code word is defined to be a sequence of different letters chosen from the 10 letters A, B, C, D, E, F, G, H, I, and J, wha
netineya [11]
Answer:
The answer is 6:1 .
Explanation:
We don't need to have prior knowledge of combination or permutation.
Count the way to chose 4 letters.As given in the question chose sequence of different letters
For first place we have 10 letter
For second place we have 9 letter as one is already out
For 3 place we have 8 letter as two letter are already out
For 4 place we have 7 letter as three letter are already out
Total group of 4 letters = 10 * 9 *8*7
Similarly form group of 5 letters we have
Total group of 5 letters = 10 * 9* 8 * 7*6
then Calculating ratio between 4 and 5
We have,
Group 5 : Group 4 ::10 * 9* 8 * 7*6:10 * 9 *8*7
: : 30240 : 5040
divide by 5040 on both side we get
Group 5: Group 4 :: 6 : 1
Answer:
see explaination
Explanation:
#include <iostream>
#include <vector>
using namespace std;
void vector_sort(vector<int> &vec) {
int i, j, temp;
for (i = 0; i < vec.size(); ++i) {
for (j = 0; j < vec.size() - 1; ++j) {
if (vec[j] > vec[j + 1]) {
temp = vec[j];
vec[j] = vec[j + 1];
vec[j + 1] = temp;
}
}
}
}
int main() {
int size, n;
vector<int> v;
cin >> size;
for (int i = 0; i < size; ++i) {
cin >> n;
v.push_back(n);
}
vector_sort(v);
for (int i = 0; i < size; ++i) {
cout << v[i] << " ";
}
cout << endl;
return 0;
}
Answer:
def length( mystring):
count = 0
for i in mystring:
count += 1
return count
def reversed( mystring):
strlist = []
for i in range(length(mystring)):
strlist.append(mystring[(length(mystring) - 1) - i])
txt = "".join(strlist)
return txt
string = 'Yolanda'
print(reversed(string))
Explanation:
The python module defines two functions 'reversed' and 'length'. The length function counts the number of characters in a string variable while the reversed function reverses the string variable value.