Answer: it does – or perhaps appears to do – in the world.
Explanation:
sorry if am not right have a nice day lol
Answer:
The program to this question can be given as:
Program:
#include <stdio.h> //include header file.
int main() //defining main method
{
char i,j; //defining variable
for (i='a'; i<='e'; i++) //outer loop for column
{
for (j='a'; j<='e'; j++) //inner loop for row
{
printf("%c%c\n",i,j); //print value
}
}
return 0;
}
Output:
image.
Explanation:
- In the above C language program, firstly a header file is included. Then the main method is defined in this, a method contains a char variable that is "i and j". This variable is used in for loop, that is used to print the pattern.
- To print the following patter two for loop is used the outer loop is used for print columns and the inner loop prints row.
- In C language to print character, we use "%c" inside a loop print function is used, that prints characters.
The rules of a programming language constitute its syntax.
Answer:
autocratic
Explanation:
taking no account of other peoples wishes or opinions; domineering
Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
class Window //defining a class Window
{
private:
int width, height;//defining integer variable
public:
friend ostream& operator << (ostream& stm, Window& width)//defining a friend function that takes two parameters
{
return stm<<"a ("<<width.width<<" x "<<width.height<<") window"; //use return keyword that return its values
}
Window(int width, int height): width(width), height(height)//defining parameterized constructor that inherit width and height in its parameters
{}
};
int main() //Main method
{
Window w(80,90);//calling class constructor
cout<<w;//print object value
return 0;
}
Output:
a (80 x 90) window
Explanation:
In the above code, a class "Window" is defined that uses a friend function "ostream& operator" is declared that uses the "ostrea&" as a data type to hold two-variable "stm and w" in its parameter, and declared the parameterized constructor to hold value by inheriting width and height in its parameters.
Inside the main method, a class object is created that calls the constructor and uses the print method to print object value.