Sunday, 13 October 2013
Wednesday, 9 October 2013
Tags: c-programming-coding, programming-codes
Write a Program in C to Copy String
Objective : Write a Program in C to Copy String.
C language allows string handling with functions implementing operations on strings in the C standard library. Various operations, such as copying, concatenation, tokenization and searching are supported.
C language allows string handling with functions implementing operations on strings in the C standard library. Various operations, such as copying, concatenation, tokenization and searching are supported.
Tags: c-programming-coding, programming-codes
Write a Program in C To find Factorial of a given number
Objective : Write a Program in C To find Factorial of a given number
The factorial of a integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example,
Factorial of 5 = 5! = 5 X 4 X 3 X 2 X 1 = 120
The value of 0! is 1, according to the convention for an empty product.
The factorial of a integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example,
Factorial of 5 = 5! = 5 X 4 X 3 X 2 X 1 = 120
The value of 0! is 1, according to the convention for an empty product.
Tags: c-programming-coding, programming-codes
Write a Program in C to Print Fibonacci Series
OBJECTIVE : Write a Program in C to Print Fibonacci Series
The Fibonacci Sequence is the series of numbers formed by adding preceding 2 numbers:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...
The next number is found by adding up the two numbers just before it.
The Fibonacci Sequence is the series of numbers formed by adding preceding 2 numbers:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...
The next number is found by adding up the two numbers just before it.
- The 2 is found by adding the two numbers before it i.e. (1+1)
- Similarly, the 3 is found by adding the two numbers before it i.e. (1+2),
- And the 5 is (2+3),
- and so on!
Subscribe to:
Posts (Atom)