Programming
The programming category contains programs from programming different languages like QBASIC, Python, C, C++, etc. This is an archive page that contains the collection of programs from all the languages under that category.
About Me:
I am a web developer with expertise in web development using various web technologies.
I have always been fascinated and enthusiastic about technology ever since my childhood. I always wanted to be familiar with what, why, and how of technologies. Web development has been my only passion ever since I started learning it. Following this passion, I have always been ready to learn new technologies and implement them in my projects.
I do have expertise in coding and have a good understanding of various languages like QBASIC, C/C++, Python, Java, Ruby, etc. along with front-end technologies like HTML, CSS, JavaScript, jQuery, AJAX, React, and Vue. I also have experience in developing websites and web applications using backend technologies like PHP, Ruby on Rails in combination with the database system MySQL.
Website: https://developeranil.tech
Make sure to post the comments for each program if you have any issues. I will respond to it as soon as possible.
The program below calculates the sum of squares of two user input numbers. Explanation: To calculate the sum of squares of two user input numbers. We are using the exponentiation operator (^) to calculate the squares of the numbers i.e., a ^ 2 and b ^ 2 to calculate the squares of a and b …
QBASIC – Calculate the sum of squares Read More »
Let’s understand how to calculate the sum of natural numbers from 1 to n. The program below will display the total of all numbers from 1 to n i.e., 1 + 2 + 3 + 4 + 5 + …… + n. Explanation: If you remember in the program to display the sum of numbers …
QBASIC – Sum of n natural numbers Read More »
Let’s understand how to calculate the sum of numbers from 1 to 5. The program below will display the total of all numbers from 1 to 5 i.e., 1 + 2 + 3 + 4 + 5. Explanation: This is a little different use of the FOR looping statement. If you remember in the program …
QBASIC – Sum of numbers from 1 to 5 Read More »
Following is a program to calculate the square root and cube root of any user-entered number in QBASIC. Explanation: To calculate the square root or cube root of any number, we will be using the exponentiation operator (^) as used in calculating the square and cube of any number. However, unlike raising the power of …
QBASIC – Calculate square root and cube root of a number Read More »
Below is the program to calculate the sum and average of three user input numbers. Explanation: To find the sum of three numbers we take the numbers as input from the user and use the addition operator (+). After calculating the sum, the average is calculated by dividing the sum of the numbers by the …
QBASIC – Find sum and average of three numbers Read More »
Below is the program to calculate the cube of the user input number. Explanation: To find the cube, we will be using the exponentiation operator (^). The operator is used to raise a number to an exponent of a designated number. Coming to the example, a ^ 3 is used which means a is raised …
QBASIC – Find the cube of a number Read More »
Below is the program to calculate the square of the user input number. Explanation: To find the square, we will be using the exponentiation operator (^). The operator is used to raise a number to an exponent of a designated number. Coming to the example, a ^ 2 is used which means a is raised …
QBASIC – Find the square of a number Read More »
As we know, QBASIC supports different types of looping structures; WHILE…WEND, FOR…NEXT and DO…LOOP WHILE. Since, WHILE…WEND and DO…LOOP WHILE has much significance, let’s understand the difference between WHILE…WEND loop and FOR…NEXT loop in QBASIC. FOR loop provides a concise way of writing the loop structure. A FOR loop contains the loop variable initialization, condition …
QBASIC – Difference between WHILE and FOR loop Read More »
Following is a basic program to print numbers from 1 to 5 using DO…LOOP WHILE loop in QBASIC. Explanation: DO…LOOP WHILE is similar to WHILE…WEND loop except for the piece of code is executed first before the condition is checked. Let’s understand the syntax and differences from WHILE…WEND loop. The loop starts with initializing the …
QBASIC DO…LOOP WHILE – Print numbers from 1 to 5 Read More »
Below is the QBASIC program to display the numbers from 1 to 5 using WHILE…WEND looping statement. The main objective of the example is to understand the syntax of WHILE…WEND loop. Explanation: Unlike FOR loop where the value of the loop variable is initialized in the looping statement, the loop variable is initialized before the …
QBASIC WHILE Loop – Print numbers from 1 to 5 Read More »