answersLogoWhite

0


Best Answer

for (int i=1; i<20; i+=2) printf ("%d\n", i);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a program that display odd number from one to twenty in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many ways can you make the number 9 in addition adding?

you can make the number nine twenty times


Why are they dismantleing a space shuttle?

To donate it's parts to the Orion program and make them safe for public display.


What is the facial-affect program?

Activation of a set of nerve impulses that make the face display the appropriate expression.


What is progam decision making?

A program that helps you to make decisions. For instance, you have programs that can display ads to help you decide what to buy next.


Make a program that will accept any number n between 20-50 and another number x between 1-5 Then the program will display all numbers from 1-n that is divisible by x?

/* a number divisible by x should be a multiple of x */ int i, n,x; scanf ("%d", &amp;n); scanf ("%d",&amp;x); for(i=x;i =&lt; n;i+=x) { printf ("%d", x); }


What number should you make the font on a 7th grade trifold display project?

somewhere between 30 and 50


What function enables the user to input information while the program is being executed in c?

The scanf() function is a commonly used function to input information during the execution of a program. scanf() function has its prototype in the stdio.h header file. To accept and display a number: int num; printf("Enter a number: "); scanf("%d",&amp;num); printf("You entered %d",num); To accept and display a character, replace %d with %c and make num a character variable [char]. Plus: gets, fgets, read, fread, getchar, getc, fgetc, getch...


Is twenty-two two words?

Yes, twenty-two is two words. because you can have twenty as one word to make the number just 20, and the same rule go's for two. if you put the two words together you get the number 24, but if the words are both apart, then your just left with a 20 or 2.


What number is multiplied by 6 to make 54?

Two twenty-seven times or twenty-seven twice, three eighteen times or eighteen thrice, and six nine times or nine six times.


How do you make the number twenty-four using 4 operations and these numbers negative 8 2 2 1?

8(22 - 1)


How do you make a sentence with the word criminology?

Studying criminology helps us understand the causes and patterns of criminal behavior in society.


Suppose you're working on a display for Thanksgiving The drawings construction paper and labels you use to make up the display are examples of what?

Suppose you're working on a display for Thanksgiving. The drawings, construction paper, and labels you use to make up the display are examples of what?