answersLogoWhite

0


Best Answer

for (int i = 2; i < 10; i ++) printf("%d\n", i); You did say even and odd numbers between 1 and 10. That's allnumbers between 1 and 10.

User Avatar

Wiki User

โˆ™ 2009-08-05 21:52:43
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar

Add your answer:

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

Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i &lt;= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


How do you write c program to Print the Strange Numbers Between 1 and 100000.?

Reference:http:cprogramming-bd.com/c_page2.aspx# strange number


Write a C Program to print sum of squares of odd numbers?

#include


Write a program in c plus plus to print given numbers in ascending order?

Put the numbers in a vector and sort the vector. Then print it.


Program for print prime all number from 1 to 100 in foxpro?

Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.


Write a c program to print even numbers using for loop?

Yes, yes, please do.


How do you Write a C program to print a Series of Odd Numbers and Even Numbers.?

Reference:cprogramming-bd.com/c_page2.aspx# divisible


Write a c program to print all prime numbers from 1 to n by using for loop?

Yes, please do write.


Write a program in Java which will print all nested loop between 1 to 500?

To print numbers from 1 to 500, a "for" loop seems most appropriate. You don't need a nested loop in this case.


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


Write a program to find sum of 10 numbers?

CLS PRINT "PROGRAM: Add up 10 numbers entered from the keyboard;" PRINT " then, printout their sum total." PRINT sumTotal = 0 FOR eachNo% = 1 TO 10 IF eachNo% &lt; 10 THEN PRINT " "; PRINT eachNo%; "&gt; "; INPUT "Enter number: ", number sumTotal = sumTotal + number NEXT PRINT PRINT "The sum total of your 10 numbers is: "; sumTotal END


Write a c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos


Write a program to print the in series?

write a shell script to print thi format***************


Write a unix program to print print a pattern?

echo 'print a pattern'


How do you write a java program to print odd numbers up to 100?

for(int i = 1; i &lt; 100; i+=2) { System.out.println(i); }


Write a c program to print the sum of even numbers from 300 to 400?

printf ("%d", 51*350);


How do you write a Qbasic program to display these Numbers-0112358132134?

you do this 10 print "0112358132134" use the whole of the thing


How can you write a Java program to print numbers up to 100 using loops?

for(int i = 0; i &lt;= 100; ++i) { System.out.println(i); }


How do you write a program to print numbers from star one and next line star two in php?

Try the triangle program on a search engine. Replace numbers with stars and that should do the trick


Write a program in qbasic to print all even numbers from 65 to 85?

For i = 66 to 84 step 2 : print i : next : end PROGRAM TO FIND THE FIRST ONE HUNDRED EVEN NUMBERS FOR NUM = 2 TO 100 STEP 2 PRINT NUM, NEXT NUM END


How do you write a program to print the numbers from 1-10 and their squqre?

Use a counted loop. for x=1 to 10 step 1 print x print x*x next


How do you write a C program to read 4 floating point numbers and print the average-and-difference?

#include&lt;stdio.h


Can you write a C program to print your name?

#include&lt;stdio.h&gt; void main() {printf("Your name\n"); }


Can any one help you to write a program that Print even numbers from 0 to 100 that not a multiple of 6 in C program?

Sorry we are not here to solve your assignment questions.

People also asked

Q2 Write a program to print even numbers between 10 and 50?

View results

What is minimal supervision?

View results

What is meaning of minimal supervision?

View results