can please someone teach me how to create this program using
while statement.. this is the output should look like

0
2
4
6
8
10

-thanks.. :) need it asap...

Answer Posted / prakash kavar

#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
while(i<=9)
{
printf("%d", i+2);
i=i+2;
}
getch();
}

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

883


Describe wild pointers in c?

872


What are the advantages and disadvantages of a heap?

958


What are the rules for identifiers in c?

846


What is indirection? How many levels of pointers can you have?

943


What is function prototype in c language?

835


What is bin sh c?

809


What is the equivalent code of the following statement in WHILE LOOP format?

1111


What are the types of variables in c?

806


Do array subscripts always start with zero?

1050


Explain low-order bytes.

846


Explain how does free() know explain how much memory to release?

827


what are the facialities provided by you after the selection of the student.

1958


What is strcmp in c?

774


How many header files are in c?

797