python variables and data types
Tutorials

Python variables and data types

In this article, you will learn about Python variables and data types. A Python variable is a container to store a value of any type. Where Container refers to a single memory location on the system.  An assignment operator is used to assign a value to the variable. Variables in Python are created directly when … Read more

python basic syntax
Tutorials

Basic Syntax of Python

In this article, you will learn about Python’s basic Syntax.  It is very simple just like the common English language. There is no need to end a Python statement by using the semicolon “;”. We can use the command line to run Python code. Python Print Statement Usually, when we start learning any new programming … Read more

how to install python on windows
Tutorials

How to install Python on Windows

In this article, you will learn about Python installation on the Windows operating system. You can also learn about how to run a sample “Hello World” program on the command line. Download Python Python is extensively available for many platforms. You can download and check its platform availability from this link. You can download it … Read more

python getstarted
Tutorials

Python Get Started brief introduction

Python is the best choice for beginners to start learning any programming language. This programming tutorial series is specially designed for beginners and intermediates to learn Python programming language with ease and comfort. Python Introduction Python is very popular and among the top 10 programming languages. It was first created by Guido van Rossum. Its … Read more

Student Grade cpp
Digital Trends, Programs

C++ student grade program

In this article, you will a c++ program to calculate the student grade. This program asks the user to enter the subject marks the program calculates its grade and displays the result on the screen. Criteria to calculate student grades. Criteria Range Grade 90-100 A+ 80-89 A 70-79 B 60-69 C 50-59 D Below 50 … Read more

Star patterns in cpp
Digital Trends, Programs

C++ program to print star patterns

Star pattern programs are very popular in programming languages to understand looping concepts. In this article, we will learn the C++ program to print star patterns using steric and loops. Example 1: C++ program to print triangle or half pyramid Triangle or a half pyramid is actually a right-angle triangle constructed by using the steric … Read more

fillcolors
Digital Trends

Fill color code for OpenGL applications

Here we list few common fill color code for OpenGL applications.   Color Code color glColor4f(1.0f, 1.0f, 1.0f, 0.0f); white glColor4f(1.0f, 0.0f, 0.0f, 0.0f); red glColor3f(0.0f, 1.0f, 0.0f); green glColor3f(0.0f, 0.0f, 1.0f); blue glColor3f(0.5f, 1.0f, 1.0f); cyan glColor4f(1.0f, 1.0f, 0.0f, 0.0f); yellow glColor3f(0.0f, 0.0f, 0.0f); black glColor3f(1.0f, 0.0f, 1.0f); purple glColor4f(0.0f, 1.0f, 1.0f, 1.0f); Light … Read more

run opengl program in dev cpp
Digital Trends

How to run OpenGL freeglut program in Dev C++

In this article, you will learn how to run OpenGL freeglut program in Dev C++. You can create the new console base C++ project in Dev C++. Run OpenGL freeglut program in Dev C++ Go to “file” create a new project and select console base c++ project.  Below is the screenshot Don’t forget to add … Read more

install opengl freeglut in dev cpp
Digital Trends

How to install OpenGL freeglut in Dev C++

In this article, you will learn how to download and install OpenGL freeglut in Dev c++. OpenGL (Open Graphics Library) API is a set of functions that are used to render 2D and 3D vector graphics. You can use it in computer-aided designs, gaming, virtual reality, etc. Where to download OpenGL freeglut? You can download … Read more

c++ program to interchange two numbers
Programs

C++ program to interchange two numbers

In this article, you will learn a C++ program to interchange two numbers. We can interchange two numbers by using the same technique as swapping. For this program, we will use a “temp” as a supporting variable to temporary hold the value. If we have two numbers 4 and 7, After interchange 7 becomes 4, … Read more

Scroll to Top