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 / sandeep kumar yadav
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
clrscr();
while(i<=10)
{
printf("%d\n",i);
i+=2;
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Why is c used in embedded systems?
c program to compute AREA under integral
How do you determine whether to use a stream function or a low-level function?
What is variable declaration and definition in c?
How do you list files in a directory?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What are extern variables in c?
What is the difference between strcpy() and memcpy() function in c programming?
what will be maximum number of comparisons when number of elements are given?
what will be the output for the following main() { printf("hi" "hello"); }
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
In which language linux is written?
What is operator promotion?
plz let me know how to become a telecom protocol tester. thank you.