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 / parth ujenia

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

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1899


What is the advantage of c?

835


What is return in c programming?

752


Explain what is output redirection?

926


What is main () in c?

824


What is line in c preprocessor?

845


Explain what is the difference between text files and binary files?

899


Explain how can you tell whether a program was compiled using c versus c++?

847


What is a char in c?

785


Is it fine to write void main () or main () in c?

780


How can you find the exact size of a data type in c?

812


What is unsigned int in c?

771


What is a string?

902


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1700


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

834