Dod required a car to access data gahagsgssgsg
Answer:
#include <iostream>
using namespace std;
int main()
{
int length = 8;
int width = 8;
int perimeter = 2*(length + width);
int area = length * width;
cout<<"The perimeter is "<<perimeter<<endl;
cout<<"The area is "<<area<<endl;
return 0;
}
Explanation:
include the library iostream for using the input/output instructions in the c++ programming.
Create the main function and define the variable length and width with values.
Then, use the formula for calculating the perimeter and area of rectangle.


and store in the variables and finally print the output.
Answer:
word = input('Enter a single word: ', 's');
n = length(word);
nodupWord = [];
for i = 1:n
dup = false;
c = word(i);
for j = 1:i-1
if word(j) == c
dup = true;
break;
end
end
if ~dup
nodupWord = [nodupWord, c]; %add the non-duplicate char to end
end
end
disp(['Adjusted word: ', nodupWord])
Explanation:
The code is in Python.