answersLogoWhite

0

# include<stdio.h>

void main()

{

int i = 1;

while(i<11)

{

if(i%2==1)

{

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

}

i++;

}

}

User Avatar

Wiki User

15y ago

What else can I help you with?

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


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 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 program in Q basic to print the sum of the even numbers from 1 to 20 in reverse order?

To write a program in QBasic that prints the sum of the even numbers from 1 to 20 in reverse order, you can follow these steps: DIM sum AS INTEGER sum = 0 FOR i = 20 TO 2 STEP -2 sum = sum + i NEXT i PRINT &quot;The sum of even numbers from 1 to 20 is: &quot;; sum This program initializes the sum to zero, iterates from 20 down to 2 in steps of -2 (to capture even numbers), adds each even number to the sum, and finally prints the result.


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.


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.