C-Sharp

37
1834 reads

February 5, 2013

statistical information


Write a C# program to answer about the statistical information such as arithmetic mean, median, mode, and standard deviation of an integer data set.

91
2574 reads

February 5, 2013

Factorial


This example shows you how to calculate the factorial of a small integer.
factorial of a number n is the result of multiplying n*(n-1)*(n-2)*...*1
you will learn how to use (*=) operator

26
1953 reads

February 2, 2013

fibonacci


fibonacci
* write a program that read a number N then calculate the summation of thr first n numbers of sequence of fibonacci series that's defined as : 1,1,2,3,5,8,13,....
* Input :5

35
1952 reads

February 2, 2013

summation


summation
* write a program that reads 2 integers N,X and calculate
* Sum=1+1!/x+2!/x^2+.....+n!/X^n
* you will learn how to use loops in summation calculation and functions
*

66
2451 reads

February 2, 2013

happy numbers


happy numbers
* print all four digit numbers in format ABCD where A+B=C+D (known as happy numbers)like 1342
* you will learn how to write a nested if statements
*

61
2081 reads

January 31, 2013

palindrome.


Write a function which returns true if the string parameter is a palindrome. A palindrome is any "word" which is the same forward and backward, eg, "radar", "noon", "20011002",

56
1747 reads

January 31, 2013

capitalize a string


To "capitalize" a string means to change the first letter of each word in the string to upper case (if it is not already upper case)
Input :
Now is the time to act!
Output :

56
1884 reads

January 31, 2013

check for char in a string


Given a string, count the number of words ending in 'y' or 'z' -- so the 'y' in "heavy" and the 'z' in "fez" count, but not the 'y' in "yellow" (not case sensitive).

38
1798 reads

January 30, 2013

array covariance


this example shows you what is Array co-variance (assigning objects of type B to an array of type A given A is the parent of B) and how it's implemented

31
1804 reads

January 30, 2013

Jagged Array


it's an example to show you how to declare jagged array ,assign values to it and finally shows you how to use foreach statement .