1. ## How coding -WHILE

#include<stdio.h>
main()
{
int i=0;

while(i<=9)
{

printf("Valuea i is :%d\n",i);

*any one no what formula can i use here to make it mutiple 2 *

}

2. 1) This is the 21st century, so it's int main(void) not just main().

2) main is supposed to return an integer, 0 in your case.

3) you probably want to do i = i*2 to multiply i by two and store the result back into i.

3. Originally Posted by claudiu
1) This is the 21st century, so it's int main(void) not just main().

2) main is supposed to return an integer, 0 in your case.

3) you probably want to do i = i*2 to multiply i by two and store the result back into i.
thank

4. << !! Posting Code? Read this First !! >>
Read it before you post any more code.

5. #include<stdio.h>
main()
{
int i=9;

while(i<=1)
{

printf("Valuea i is :%d\n",i);

*any one no what formula can i use here to make it decreasea by 2*

}

how to make it decreasa by 2?

6. Originally Posted by Salem
<< !! Posting Code? Read this First !! >>
Read it before you post any more code.

I don't think you read it, because you're still not using code tags.

7. Originally Posted by hakimstm1b
#include<stdio.h>
main()
{
int i=9;

while(i<=1)
{

printf("Valuea i is :%d\n",i);

*any one no what formula can i use here to make it decreasea by 2*

}

how to make it decreasa by 2?
Are you... serious?

8. post incorrect whre i do wrong?

9. int i=10;

while(i<=2)
{

printf("Valuea i is :%d\n",i);

*any one no what formula can i use here to make it decreasea by 2*

}

how to make it decreasa by 2?

10. Originally Posted by hakimstm1b
int i=10;

while(i<=2)
{

printf("Valuea i is :%d\n",i);

*any one no what formula can i use here to make it decreasea by 2*

}

how to make it decreasa by 2?
Maybe you should go to a forum in a language you actually speak. I mean, your questions are horrible because of so many reasons and any explanation given to you about what makes is so wrong you either don't read or don't understand.

11. Originally Posted by EVOEx
Maybe you should go to a forum in a language you actually speak. I mean, your questions are horrible because of so many reasons and any explanation given to you about what makes is so wrong you either don't read or don't understand.
EVoEX Please please be a little more considerate of someone trying to get help
from a non-native English country. I can understand her 99%. The fact that she is fluent
in her native language, and she can communicate in English, makes her a lot smarter than
me, IMHO.

12. Originally Posted by hakimstm1b
post incorrect whre i do wrong?
Hi hakimastm, here's how you do it. you post your code between these 2 blocks.

[code xxx] put your code here [/code xxx]

Don't include the "xxx" ... I put those in there otherwise you could not see
what wrote.

Take out the "xxx" and try again. :-)

EDIT: I'm copying and pasting the example from the moderator's link:

How do I use code tags?
Well if you have any experience with HTML it is fairly simple to use. A tag has a beginning and ending. A beginning tag looks like this: [tag] and an ending tag looks like this: [/tag xxx] . The tag name for the code tag is simple, it is "code". So to begin a code tag, type the following: [code] . Then type all your code or copy and paste, whatever you want. When you are done, use the closing tag which uses the same tag name but with a forward slash to denote a closed tag: [/code] .

13. Spoon feed me! Do my homework! I have an avatar of a GIRL!!!

/rolleyes

14. Originally Posted by rags_to_riches
Spoon feed me! Do my homework! I have an avatar of a GIRL!!!

/rolleyes
RtoR I can relate to what you're saying, because I think I have seen

However, there are few factors in this case which should be considered:

1) I'm very married, happily married to a Thai lady who wrote to me English in
exactly the same way when at the beginning we were pen pals 14 time zones away.

2) I would have had precisely the same response to a male person in the same situation.

RtoR I thoroughly enjoy reading your posts, and I like to learn how to detect
cross posts, a skill that you have mastered.

My main concern, was that a non-native English speaker is having a hard time, and I only
wanted to help.

Since you have your doubts, and I want to continue for us to have a good relationship
:-) I'm done with this thread.