int i;
for (i=2; i<=30; i+=2) printf ("%d\n", i);
The simplest way is probably to read the numbers into an array and then prints each element of the array starting at the last one and moving backwards.
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.
#include
In GE BASIC, you can print odd numbers using a FOR-NEXT loop by specifying a starting point and incrementing by 2. Here’s a simple example: FOR I = 1 TO 99 STEP 2 PRINT I NEXT I This will print all odd numbers from 1 to 99. The STEP 2 ensures the loop only increments by 2, thereby producing only odd numbers.
PRINT 2,3,5,7,11,13,17,19,23,29,31,37
You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.
The simplest way is probably to read the numbers into an array and then prints each element of the array starting at the last one and moving backwards.
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.
#include
In GE BASIC, you can print odd numbers using a FOR-NEXT loop by specifying a starting point and incrementing by 2. Here’s a simple example: FOR I = 1 TO 99 STEP 2 PRINT I NEXT I This will print all odd numbers from 1 to 99. The STEP 2 ensures the loop only increments by 2, thereby producing only odd numbers.
PRINT 2,3,5,7,11,13,17,19,23,29,31,37
Try the triangle program on a search engine. Replace numbers with stars and that should do the trick
Install your phone software program and download the list to your PC then print. Your phone program can be downloaded from your phone maker web site if it did not come with your phone package.
Oh, what a lovely request! In FoxPro, you can create a program to print all prime numbers from 1 to 100 by using a loop to check each number for divisibility only by 1 and itself. If it meets this criteria, you can print it out on the screen. Remember, every number is unique and special, just like a happy little tree in a vast forest.
You could go to your app store and there is a app called Phoster. You can print invitation from there and it is really cool. Or the program word is perfect for that too.
find even number in array
you do this 10 print "0112358132134" use the whole of the thing