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

What is the best way to store flag values in a program?

574


What does emoji p mean?

593


What are global variables?

636


How do I send escape sequences to control a terminal or other device?

602


How to declare pointer variables?

677






What is selection sort in c?

598


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

625


Explain what will the preprocessor do for a program?

591


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1535


What is quick sort in c?

577


What does d mean?

572


Stimulate calculator using Switch-case-default statement for two numbers

2438


Why is it usually a bad idea to use gets()? Suggest a workaround.

894


Explain what are the standard predefined macros?

645


What are dangling pointers in c?

633