answersLogoWhite

0


Best Answer

# include<stdio.h>

void main()

{

int i = 1;

while(i<11)

{

if(i%2==1)

{

printf("\n%d",i);

}

i++;

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a basic program to print even and odd numbers in between 1 to 10?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a program to find out the square and cube of first ten natural numbers in gw basic?

First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.


How do you write a standard basic program?

That really depends on what sort of program you are trying to build, what do you want the program to do?


How do you write BASIC program to accept variables?

dim a input a


The distance between two cities in km is input through the keyboard write a program to convert and print this distance in meters feet inches and centimeters?

mesh's basic salary is input through the keyboard. his dearness allowance is 40% of basic salarying , and house rent allowance is 20% of basic salaried. write a program to calculate his gross salary


C program to print numbers 1 to n?

how do we use loops in c plus plus programing and what are basic differences between do,for and while loop


What BASIC program can compute and display all prime numbers from 1 to 40?

PRINT 2,3,5,7,11,13,17,19,23,29,31,37


How do you write a do while loop in visual basic to display the produc of even numbers between 1 and 10?

i=0 do if(i/2=0) msgbox(i) while(i&lt;=10) wend


What is the basic concept in parallel algorithms?

Distributing the program between processors.


Program to print all the even numbers of an array in visual basic?

find even number in array


How do you write a program in visual foxpro?

Same with other Visual Basic program, programming in FoxPro will require you to have the right syntax.


What is Visual Basic Editor?

There have been many versions of Visual Basic. It is a program which allows you to write other computer programs. Each version of Visual Basic has come with an editor to allow you to write and edit code. This is called the "IDE", or "Integrated Development Environment".


How do you write numbers and basic 10 numerals?

To write numbers, you can use either words or numerals. For example, you can write the number six as &quot;six&quot; or as the numeral &quot;6&quot;. For basic 10 numerals, you can use the digits 0-9 to represent numbers. The number system is based on a decimal system, where each digit's value is determined by its position in the number.