Answer:
Code is given below and output is attached as an image.
Explanation:
#include <iostream>
#include <fstream>
using namespace std;
bool isPalindrome(int n)
{
// Find reverse of n
int rev = 0;
for (int i = n; i > 0; i /= 10)
rev = rev * 10 + i % 10;
// If n and rev are same,then n is a palindrome
return (n == rev);
}
int main()
{
int min = 1; // Lower Bound
int max = 200; // Upper Bound
ofstream myfile;
myfile.open("palindrome.txt");
for (int i = min + 1; i < max; i++)
if (isPalindrome(i))
myfile << i << endl;
myfile.close();
return 0;
}
Answer:
C is the answer to this question.
The points a b c and d lie on a straight line ab:bd = 1:4 are A line that extends to infinity on both sides and has no curves is called a straight line.AB:BC=3:4.
<h3>What do you call a straight line? </h3>
A line is simply an object in geometry denoted as an object with no width that extends on both sides. A straight line is just a line with no curves.
- AC=AB+BC=3+4=7; AC:CD=2:1, i.e. AC=2; because we get 2 different lengths for AC, we change the given ratio AC:CD to an equivalent one with AC=7 .
- As follows: AC:CD = 2 : 1 = 7 : 3.5 (multiply both sides by 3.5 ) Now we have AC:CD = 7 : 3.5 and AD = AC+CD= 7+3.5 = 10.5,, and the answer is: the ratio BC:AD = 4:10.5.
Read more about the straight line:
brainly.com/question/3493733
#SPJ1