Making circle in C++ without using and Graphics libraies

Making a circle or any geometrical object by using graphics libraries is not a big deal but if we can create the geometrical object without using any graphics libraries is a little bit tricky.
Today, I made a circle without using any graphics libraries. This can be done by using the two-dimensional array and parametric equation of a circle. Here is the given below code:


using namespace std;

int main(){
    int width = 80, height = 25, radius;
    char ch;
    cout << "Enter the radius of circles less than or equal to 12: "; cin >> radius;
    cout << "\nEnter the character by which you make a circle: "; cin >>  ch;   

    // Initialise a two dimensional array
    char display[width][height];

    // Create a empty display 
    for(int i = 0; i < height; i++){
        for(int j = 0; j < width; j++){
           display[i][j] = ' '; // Every element of display equal to empty
    // Create a circle by using parametric equations of circle
    for(int angle = 0; angle < 360; angle += 1){
        // Calculate x and y by using parametic formulas of circle
        int x = (radius * cos(angle)); 
        int y = (radius * sin(angle));
        // Moving cordinates toward center of the display
        int cx = height/2 + x;
        int cy = width/2 + y;
        // Character which made the circle
        display[cx][cy] = ch;

    // Display all elements present in display array
    for(int i = 0; i < height; i++){
        for(int j = 0; j < width; j++){
           cout << display[i][j];
        cout << endl;

    return 0;


Unmet dependencies

After wasted two days on installation of libraries files for opencv I am getting a little bit off help from my elder brother Harman. He is explaining about the versions of libraries files and they also tells that I am not following the latest installation documentation of opencv.

I am trying to install libgtk2.0-dev as mentioned in installation documentation of opencv and error occurred  as

The following packages have unmet dependencies:
  libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
  Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
  E: Unable to correct problems, you have held broken packages.

But when I trying the latest version of libgtk-3-0 all dependencies is solved and it is installed in my laptop.

The below following links which is used in installation of libraries files are given below :