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 / ashish rajvanshi

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=10;i=i+2)
printf("%d\n",i);
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between functions abs() and fabs()?

1123


What is the difference between formatted&unformatted i/o functions?

1022


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1105


Write a program to check palindrome number in c programming?

980


What are unions in c?

995


What is the difference between array and linked list in c?

1104


#include { printf("Hello"); } how compile time affects when we add additional header file .

1866


What does struct node * mean?

982


What are nested functions in c?

989


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

2017


Explain what is the most efficient way to store flag values?

1188


write a c program for swapping two strings using pointer

2585


Do variables need to be initialized?

1010


How can you increase the size of a dynamically allocated array?

1153


Differentiate between new and malloc(), delete and free() ?

1150