Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2805


Explain what is the purpose of "extern" keyword in a function declaration?

1124


write a program to rearrange the array such way that all even elements should come first and next come odd

2352


What are c identifiers?

1151


What do you know about the use of bit field?

1098


What is a volatile keyword in c?

1212


Explain what are binary trees?

1128


What are # preprocessor operator in c?

1169


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1167


Does c have an equivalent to pascals with statement?

1060


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

2121


What is an lvalue?

1107


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1577


How would you obtain the current time and difference between two times?

1335


What is preprocessor with example?

1115