Tag: Source Code

Generating Controlled Random Numbers in C#

Generating random numbers is a fundamental requirement in various programming scenarios, from creating dynamic content to simulating unpredictable events. In C#, the System.Random class provides a versatile solution for generating random values. In this article, are going to explore the basics of random number generation in C# and write practical examples that showcase its applications.

Read More

C Program: Number Shuffling Game

This C program is a simple console-based implementation of a number-shuffling game. The game presents a grid of numbers, and the objective is to rearrange them in ascending order. The player can move the numbers by pressing the corresponding number keys, and the game tracks the number of moves taken to complete the puzzle.

Read More

C Program – Tic-Tac-Toe Game – Command Line

This is a console version of Tic Tac Toe computer game written in c programming language. The game runs in text mode of command prompt and users can play the game in text mode. The game has many options to choose from, like playing with computer, friend. While playing with computer use can select either novice mode or advance mode.

Read More

C Program to show Fibonacci Sequence

This C program prints out the first Fibonacci series of N numbers. In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci. The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, thus creating the sequence 0, 1, 1, 2, 3, 5, 8, etc. The standard form of writing Fibonacci series is:

Read More

Stack Implementation with Array

This java code implements stack functionality by using arrays. It can Pop and Push an item in stack with the help of array. The item can only be an integer number and internally the java program uses arrays to maintain items in stack.

Read More

Blinker

This script allow you to quickly blink the background. With a click of a button, the background changes from white to blue and back several times to return to white. JavaScript...

Read More

JavaScript – Interactive Background Color Changer

The “Interactive Background Color Changer” code provides a user-friendly interface to dynamically change the background color of a web page. It includes buttons to select predefined colors such as red, green, blue, white, black, and grey. Additionally, it features buttons to incrementally adjust the RGB (Red, Green, Blue) values of the background color which allow users to create custom colors.

Read More