int i;
for (i=2; i<=30; i+=2) printf ("%d\n", i);
Reference:cprogramming-bd.com/c_page2.aspx#perfect number
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
PRINT 2,3,5,7,11,13,17,19,23,29,31,37
find even number in array
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.
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.
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
PRINT 2,3,5,7,11,13,17,19,23,29,31,37
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.
Try the triangle program on a search engine. Replace numbers with stars and that should do the trick
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
10 CLS 20 FOR n = 1 to 10 30 PRINT n, n^2, n^3 40 NEXT n 50 PRINT: PRINT: PRINT "Touch 'x' to go again, any other key to end." 60 INPUT a$ 70 IF a$ = "X" or a$ = "x" THEN 10 80 END