Comment on Tutorial - Increment and Decrement Operator By aathishankaran



Comment Added by : sajid

Comment Added at : 2011-09-06 20:51:54

Comment on Tutorial : Increment and Decrement Operator By aathishankaran
this is because dear u r using here postfix increment n++ this postfix assigned value 0 to n always before the increment in value and result would b 0 0 0 0 0 throughout the loop if u want that ur output will 1 2 3 4 5 then use prefix ++n here.

View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. thank you for ur programs.........
View Tutorial          By: NAGARAJRATHINARAJ at 2012-01-24 14:39:19

2. nice tutorial
View Tutorial          By: Raman at 2014-11-13 07:47:11

3. Thank you very much!!!

But I have t

View Tutorial          By: Gemis at 2009-04-14 02:37:08

4. thank u.actually i want little more...
View Tutorial          By: burhan at 2010-07-13 03:46:01

5. Thank You , It's Very Good.
View Tutorial          By: Jack at 2012-06-10 14:09:24

6. can we do it this procedure by iteration i know th
View Tutorial          By: sattar at 2010-05-03 03:00:20

7. super example...it very useful for me...
View Tutorial          By: elan at 2011-06-02 07:54:39

8. Looks good, but don't use gets(). gets() is respon
View Tutorial          By: Luke at 2011-11-21 09:03:38

9. Very good example .!
Ty

View Tutorial          By: Mprogrammer at 2014-11-25 12:10:21

10. Da program wont work if '#' is the first character
View Tutorial          By: Kala at 2012-09-05 00:24:59