Answer:
//Program was implemented using C++ Programming Language
// Comments are used for explanatory purpose
#include<iostream>
using namespace std;
unsigned int second_a(unsigned int n)
{
int r,sum=0,temp;
int first;
for(int i= 1; I<=n; i++)
{
first = n;
//Check if first digit is 3
// Remove last digit from number till only one digit is left
while(first >= 10)
{
first = first / 10;
}
if(first == 3) // if first digit is 3
{
//Check if n is palindrome
temp=n; // save the value of n in a temporary Variable
while(n>0)
{
r=n%10; //getting remainder
sum=(sum*10)+r;
n=n/10;
}
if(temp==sum)
cout<<n<<" is a palindrome";
else
cout<<n<<" is not a palindrome";
}
}
}
Explanation:
The above code segments is a functional program that checks if a number that starts with digit 3 is Palindromic or not.
The program was coded using C++ programming language.
The main method of the program is omitted.
Comments were used for explanatory purpose.
Any collection of data or information that has been properly structured for quick search and retrieval by a computer is referred to as a database, often known as an electronic database.
<h3>What is electronic database?</h3>
- Databases are designed to make it easy to save, retrieve, edit, and delete data while carrying out various data-processing tasks. In response to queries, a database management system (DBMS) retrieves data from the database.
- Databases are briefly discussed after that. See computer science: Information systems and databases; information processing for a comprehensive explanation.
- A file or collection of files used to store a database.
- These files' contents can be divided up into records, each of which has one or more fields.
- The fundamental units of data storage are fields, and each field typically contains data related to one feature or attribute of the thing that the database is describing.
- Additionally, records are arranged into tables that contain details on the connections between their various fields.
- A database in the strict sense offers cross-referencing capabilities, despite the fact that the term "database" is used broadly to refer to any collection of information in computer files.
- Users can quickly search, rearrange, organize, and choose the fields in numerous records to access or produce reports on certain data aggregates using keywords and a variety of sorting instructions.
To Learn more About database Refer To :
brainly.com/question/518894
#SPJ1
Mass and chemical composition