adspace


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 / rameshwari

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

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know the difference between malloc() and calloc() function?

1131


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2734


What is the difference between union and anonymous union?

1395


How do you determine the length of a string value that was stored in a variable?

1197


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2212


write a c program to find the sum of five entered numbers using an array named number

2238


develop algorithms to add polynomials (i) in one variable

2255


write a progrmm in c language take user interface generate table using for loop?

2120


What is pointers in c with example?

1165


swap 2 numbers without using third variable?

1203


i have a written test for microland please give me test pattern

2814


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1179


What is variable initialization and why is it important?

1388


What are compound statements?

1285


Is int a keyword in c?

1055