• Register

Recent posts in c#

33 views

Sometimes we want our program to obtain numbers at random, for example, to simulate a roll of the dice or the distribution of cards in a game. In Linux C we have several...

posted Nov 17 in c# amna 36,800 points
8 views

To sort a List of objects, C# has in-build Sort() method that performs in-place sorting. The sorting can be done using a Comparison<T> delegate or an IComparer>...

posted Oct 25 in c# Arun Kumar 3,280 points
14 views

Replaces all instances of the specified character string with a newline.

Syntax

REPLACE ( string , old_text , new_text...
posted Oct 22 in c# amna 36,800 points
edited Oct 22 by amna
9 views

To read in C a text file 'file.txt' and process it line by line, we can write a program "read_file.c" containing the following code:

posted Oct 22 in c# amna 36,800 points
15 views

Summary: show how to calculate the factorial of a number using the while loop in the C programming language also known as ANSI C.

posted Oct 6 in c# amna 36,800 points
10 views

Summary: use recursion or recursion in C to get the factorial of a number; enclosing behavior in a function that will be called...

posted Oct 6 in c# amna 36,800 points
8 views

In this post I show you how to mix an arrangement in C , that is, randomize it or randomize it; whatever you call it. In this way at the end we will have the...

posted Oct 4 in c# amna 36,800 points
edited Oct 4 by amna
13 views

Summary: apply Euclid's algorithm in the C language to obtain the greatest common divisor (GCF) of two numbers; implementing two...

posted Oct 4 in c# amna 36,800 points
edited Oct 4 by amna
19 views

Summary: show how to obtain the least common multiple in C; that is, calculate the LCM of two numbers in C.

posted Oct 4 in c# amna 36,800 points
15 views

Summary: show how to generate random string in C , of any length, using srand.

posted Oct 4 in c# amna 36,800 points
7 views

In this post you are going to learn how to convert a string to an integer in C ; that is, convert one stringto...

posted Oct 4 in c# amna 36,800 points
22 views

Today we will see an exercise of working with chains or strings in C. It is about seeing a function to insert a chain into another chain, in any position.

posted Oct 4 in c# amna 36,800 points
12 views

You may want to know how to add an item to the bottom of the stack or list, rather than adding it at the top node. That is what we will see today.

posted Oct 4 in c# amna 36,800 points
10 views

Table of contents:

Specifying padding with...
posted Oct 3 in c# amna 36,800 points
10 views

In this post I will show you how to add left and right padding to the printf function (from C mainly).

posted Oct 3 in c# amna 36,800 points
11 views

 

Today we will see how to implement the selection sort algorithm in C. It is about implementing a selection algorithm to sort an array.

posted Oct 3 in c# amna 36,800 points
36 views

In this post I will show you how to get pi or calculate pi using the Leibniz series in the C programming language . While this is for C, it can work for C ++ as well.

posted Oct 3 in c# amna 36,800 points
15 views

In this post I am going to explain to you what the code is like to solve an algorithm in C that says something like this:

posted Oct 3 in c# amna 36,800 points
17 views

In this article I will show you a very simple programming exercise for starters. It is about printing a triangle of asterisks in the C programming language.

posted Oct 3 in c# amna 36,800 points
40 views

In this post I will show you the solution to the following problem that occurs when programming in C:

Table of...

posted Oct 3 in c# amna 36,800 points