How to get length of string without using any existing function in C#

Question: Write a program which return a length of string without using any existing function in C#. Answer: using System; namespace consoleProgram { class Program { static void Main(string[] args) { string str = “my name is pramod kumar thakur”;… Continue Reading →

Factorial of Any number by using do-while .

Factorial: Factorial are just products,indicated by an exclamation mark. In general “n!” means the product of all the whole numbers from 1 to n; i.e n!= 1x2x3x4x……x n.

A program to find sum of n numbers by using while loop in c++.

This program add up to n numbers which will be provided by user. Firstly user will enter a fix number to indicate how many numbers he wants to add and then he will enter n numbers.

Number pattern in C.

Number Patterns: In C language you can print any number pattern. Here, this program teach you how print all combination of 123.

Program to find Even or odd number using Array in C++.

In this program user provide data (numbers) to find even or odd numbers by using Array in C++.

Let’s open turboC++ and write the following Code .

factorial program in c

Let’s write a programme to find factorial of a number in C. Step 1: First of all ,we should open turbo c/c++ and write the following code in it. Code // // Add preprocessor file #include<stdio.h> #include<conio.h> void main() {… Continue Reading →