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
Explain the difference between the local variable and global variable in c?
What is a #include preprocessor?
What is pass by value in c?
What is the right type to use for boolean values in c? Is there a standard type?
a c code by using memory allocation for add ,multiply of sprase matrixes
How will you declare an array of three function pointers where each function receives two ints and returns a float?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is the process of writing the null pointer?
What does char * * argv mean in c?
What is the correct code to have following output in c using nested for loop?
Why is c called c not d or e?
What is const and volatile in c?
Explain null pointer.
What is getche() function?
Is it better to use malloc() or calloc()?