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
What is the best way to store flag values in a program?
What does emoji p mean?
What are global variables?
How do I send escape sequences to control a terminal or other device?
How to declare pointer variables?
What is selection sort in c?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Explain what will the preprocessor do for a program?
#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??
What is quick sort in c?
What does d mean?
Stimulate calculator using Switch-case-default statement for two numbers
Why is it usually a bad idea to use gets()? Suggest a workaround.
Explain what are the standard predefined macros?
What are dangling pointers in c?