How Does any number system work?


Have you heard the question : What is the value of 2 hundreds 1 tens and 3 ones?


213 right?? You all learned that in elementary school..

You did ( 2 * 100 ) + ( 1 * 10 ) + ( 3 * 1 )





But why?? Let me tell you a short story to explain..


There was a girl, who wanted to count many Candies.. So she started from 0 (no candies) to 1, to 2, to 3.. and she reached 9..
She found he doesn't have any more numbers to count on..

So what she did??


She kept one (1) aside, which will tell her that 10 candies are counted and stared counting from 0 again.

So she went from 9 to 1,0 (ten).. Then again 1,1
to 1,2 and so on..

She again reached 1,9 (nineteen).
She was happy at her decision because she can just increment that 1 she kept aside and can go from 1,9 to 2,0 (twenty).
She continued counting 2,0 then 2,1... and reached 9,9 (ninety nine) and again she got stuck.

So what she did?  She again followed her approach and kept 1 aside to represent 100 (hundred).. and did 1,0,0 (one hundred) then again 1,0,1 and she continues..


And in the end she counted 2 hundreds 1 tens and 3 ones which turned out to be 213 (Two Hundred and Thirteen).


Makes sense??

Hope so!

Create a Portable Notes App using just Notepad (Batch Script)


Do you like to take notes of various stuff while working??
Do you want to that your notes are ubiquitous but still doesn't slow down your computer?

Then, Let's Make one yourself. 




The notes you create will be present on your Taskbar for faster access.

You can click on the arrow to Insert  a new Note or View all your notes.

Upon Clicking the "+New Note.bat" file, a dialog will ask you to enter the Name or Title of the new Note.


 

 












         Content of the Note can also be entered for adding descriptive Text about the Note.






The created Note can also be seen in the Taskbar's Toolbar.





You can also Delete the Note if your Work is done or if you don't need the Note anymore.


Unfair Mario [UPDATED]

Sorry Guyz for the broken link.

Turns out, I cannot embedd the player in Blogger. So, Kindly visit


To see why the Mario, is UnFAIR. I like the game.

  

Coding-Trick: Switch-Case as unWorkable for loop

While working, I thought I could provide few tips on coding in my blog.

So, I thought to share a "short code" in a situation where you want to initialize some values. Each value is initialized by different function. You know the functions but you don't know how many values to initialize.  Uninitialized values should be 0.

Suppose values to initialize

a = f1(); 
b = f2(); 
c = f3(); 
d = f4(); 

 A normal Switch case for the above Situation :

Switch(number_of_values_to_initialize) {

case 1:
          a = f1();
          b = 0;
          c = 0;
          d = 0;
          break;

case 2:
          a = f1();
          b = f2();
          c = 0;
          d = 0;
          break;

case 3:
          a = f1();
          b = f2();
          c = f3();
          d = 0;
          break;

case 4:
          a = f1();
          b = f2();
          c = f3();
          d = f4();
          break; }


 The Shortcut for This Code is :

YOU MAY ALSO LIKE: