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 / ashish rajvanshi

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=10;i=i+2)
printf("%d\n",i);
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are low level languages?

621


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1722


What is typedef example?

607


What is meant by inheritance?

622


What is operator promotion?

619






how logic is used

1492


Can we assign string to char pointer?

578


Why can arithmetic operations not be performed on void pointers?

583


What is the use of the function in c?

592


Write a program to print fibonacci series without using recursion?

599


What is an endless loop?

796


a c code by using memory allocation for add ,multiply of sprase matrixes

2293


What are types of preprocessor in c?

610


Write a program to identify if a given binary tree is balanced or not.

674


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1575