Secondary menu

Skip to primary content
Skip to secondary content
  • Home
  • Contact Us
  • About Us

MyCoding.net

Programming Made Easy!

Main menu

Skip to primary content
Skip to secondary content
  • Site News
  • Java
  • C/C++
  • C#
  • PHP
  • Android
  • How to
  • Miscellaneous

Post navigation

← Older posts
Newer posts →
yydyswedtc

Quickly Multiply 2-digit number by 11 – Mathematical Tricks!

Posted on March 4, 2012 by Lalit Mali

Method:  Step 1. Add both digits of the 2-digit number. Step 2. Place the result in between the 2 original digits. If the sum of the 2-digits in step 1 is greater than 9, then carry the ’1′ to the …

[Continue reading]

Posted in Miscellaneous | Tagged 11, 2, digit, Mathematics, Multiply, trick | Leave a reply
rnpvewbspt

Quickly Square Numbers Ending in 5 – Mathematical Tricks!

Posted on March 4, 2012 by Lalit Mali

  Remember: If a number is ending in 5, Its square will always end in 25 Method: 85 x 85 = 7225 Step 1. Multiply the 1st digit by 1st digit plus 1: 8 x (8+1) = 72 Step 2. …

[Continue reading]

Posted in Miscellaneous | Tagged Amazing, Maths, Oral, Quick, Square, Tricky | Leave a reply

Executing a java program without main()

Posted on February 9, 2012 by Vlad

This question is asked by many interviewers during the technical interview. So, the question is self-explanatory. We have to execute a java program without using

Java
1
public static void main(String args[])

We do this by using a static block or static initializer block. A static …

[Continue reading]

Posted in Java | Tagged program without main() | 4 Replies

C# – Jagged Arrays

Posted on February 7, 2012 by Vlad

C# provides the ability to create a special type of two dimensional array called as Jagged Array. In simple terms, a jagged array is an array of arrays. A jagged array is a little different than a two dimensional array, …

[Continue reading]

Posted in C# | Tagged Array, jagged array | Leave a reply

Convert Decimal Number Array to Binary using C++

Posted on February 3, 2012 by Lalit Mali

This program converts all the decimal numbers in an array to binary. To convert a decimal number into binary, we follow the following steps: Divide the decimal number by 2 and note the remainder Divide the Quotient repeatedly by 2 …

[Continue reading]

Posted in C/C++ | Tagged Array, binary, C++, Convert, Decimal | Leave a reply

Detecting the users browser using PHP

Posted on February 3, 2012 by Lalit Mali

How to detect a Users browser? Browser detection in PHP is pretty easy. Note: If anything from below doesn’t work for you, then see the troubleshooting tips at the end of this page. For detecting the browser, we’re using PHP’s …

[Continue reading]

Posted in How to, PHP | Tagged Browser, Detect, get_browser(), PHP, visitor | Leave a reply

PHP IP to country lookup script.

Posted on February 2, 2012 by Vlad

I have already posted a script to find out the visitor’s ip. This one is similar to that one but has some additional functionality. This script uses the free IP Lookup API(Application Program Interface) provided by hostip . The script …

[Continue reading]

Posted in PHP | Tagged ip lookup | 2 Replies

C# – Boxing and UnBoxing

Posted on February 2, 2012 by Vlad

This program is to demonstrate the process of Boxing and UnBoxing in C#. In C#, all the data types are derived from an object. Thus, object can be used to refer to all the data types. The process of in …

[Continue reading]

Posted in C# | Tagged boxing and unboxing | Leave a reply

Program to print Floyd’s triangle.

Posted on February 2, 2012 by Vlad

This is a C# program that displays the Floyd’s triangle. Floyd’s triangle at Floyd’s triangle is a right-angled triangular array of natural numbers, used in computer science education. It is named after Robert Floyd. It is defined by filling the …

[Continue reading]

Posted in C# | Tagged floyd's triangle | 1 Reply

PHP Random password generating script

Posted on January 28, 2012 by Vlad

This is a simple script that generates a password of a length that is specified by the user. The user has the option to include numbers or special characters in the password with the use of the checkboxes. The script …

[Continue reading]

Posted in PHP | Tagged PHP, random | Leave a reply
Page 3 of 11‹ Previous123456Next ›Last »

Search


Sponsors



Recent Comments

  • larry on Creating simple tables in Java
  • umerali on How To Run a Java Applet using Command Prompt
  • Vlad on Creating simple tables in Java
  • Aitazaz on Creating simple tables in Java
  • Tsakani on Creating simple tables in Java

Recent Posts

  • Netbeans Tutorial – Cookies
  • Code jam “Tic-Tac-Toe-Tomek” solution in java
  • Code jam “Minimum Scalar product” solution in java
  • Code jam Store Credit solution in java
  • Program to find a square of a number without using multiplication or exponential

Join us on Facebook


Popular Posts

  • C++ program to convert decimal number into binary number 42,025 view(s) | by Vlad
  • C++ Program to find the factorial of a number. 34,301 view(s) | by Lalit Mali
  • Login form in Java using JDBC connectivity 28,084 view(s) | by Vlad
  • How to Compile a Java program in Eclipse 21,357 view(s) | by Vlad
  • How To Run a Java Applet using Command Prompt 15,703 view(s) | by Lalit Mali
  • C++ program to find out sum of digits of a number. 14,070 view(s) | by Vlad
  • C++ Program to check if a number is a Prime Number. 11,029 view(s) | by Lalit Mali
  • Caesar Cipher program 10,079 view(s) | by Vlad
  • Applet to make a smiley face 9,771 view(s) | by Vlad
  • Creating simple tables in Java 9,579 view(s) | by Vlad

Recent Comments

  • larry on Creating simple tables in Java
  • umerali on How To Run a Java Applet using Command Prompt
  • Vlad on Creating simple tables in Java
  • Aitazaz on Creating simple tables in Java
  • Tsakani on Creating simple tables in Java
© MyCoding.net
Admired Theme