User-submitted CSharp Projects

40
2138 reads

January 30, 2013

2d array


Finding a 2x2 platform in a matrix with a maximal sum of its element.
You will learn how to declare a 2-d array ,assign value to it and get its lengths(vertical and horizontal)

39
1992 reads

January 29, 2013

rectangle area


Get from user the width and the height of a rectangle and calculate its area.
the example will show u how to use float.parse() function and casting .

37
1982 reads

January 29, 2013

odd or even check


Read an integer from the user then check if this number is odd or even using ternary operator.

38
2082 reads

January 29, 2013

product of 4 numbers


obtain 4 float values from the user and display the product of them. the example will show you how to use float.parse() function and casting .

28
2780 reads

January 28, 2013

Constants


Constants enable us to store data that doesn't change.

10
2869 reads

January 28, 2013

Implicit and Explicit Conversion


This is an example of how to convert data from type to another.

There are two types of conversions:

77
6994 reads

January 28, 2013

Primitive Data Types


This is an example of how to assign values to different data types (primitive data types).

37
1892 reads

January 28, 2013

Array found


Rray that founds the values if found .... that are saved defaultly
we can alos read from the keybord(user values )

38
1930 reads

January 24, 2013

convert nubers to English pronunciation


Write a c# program that converts a number in the range [0...999] to a text corresponding to its English pronunciation. Examples:
0  "Zero"
273  "Two hundred seventy three"