Answer:
it will display in this pattern X XX XXX XXXX XXXXX
#include <iostream>
using namespace std;
int
main ()
{
int a,i, j=0;
cout << "enter number for length of triangle";
cin >> i;
for ( a = 1; a <= i; a++)
{
for (j = 1; j <= a; j++)
{
cout << "X";
}
cout<<" ";
}
}
for this
X
XX
XXX
XXXX
XXXXX
#include <iostream>
using namespace std;
int
main ()
{
int a,i, j=0;
cout << "enter number for length of triangle";
cin >> i;
for ( a = 1; a <= i; a++)
{
for (j = 1; j <= a; j++)
{
cout << "X";
}
cout<<endl;
}
}
Answer:
A. Database Management System
Explanation:
A Database Management System or DBMS is a set of programs that allow the DB administrator to the information extraction, storage and modification out of a database. It also provides tools to add, erase, modify or even analyze the data within the DB. Some examples of DBMS are MySQL, mongo DB, Ms SQL Server, etc.
Answer:
All the members within a class are by default are private. Private function in a class can access public function within a similar class. Private member formed the implementation of the class and also form the private interface of members within the class.
All the member of class can be access by function inside the class when it is declare as private.
For example:
class test
{
private:
int a; // when test:a is private
public:
test() : a() // a is accessible in test class
}