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
What is difference between union and structure in c?
What do you understand by normalization of pointers?
Can you please explain the difference between syntax vs logical error?
What is extern variable in c with example?
In C, What is the #line used for?
Write a program to check prime number in c programming?
How can you pass an array to a function by value?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What are bitwise shift operators in c programming?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is a global variable in c?
What is difference between structure and union in c?
There seem to be a few missing operators ..
Why main is not a keyword in c?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?