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
you do this 10 print "0112358132134" use the whole of the thing
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.
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.
first sort the ten numbers in descending order and print the first number. That will be the largest no
#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
decimal[] a = new decimal[20]; // initialize to some numbers for (int i = 0; i < 20; i++) { a[i] = i; } Array.Sort(a); //sorted in increasing order Array.Reverse(a); // decreasing foreach (decimal d in a) { Console.WriteLine(d); }
Many of the newer all-in-one products can print in "Reserve Mode" with one cartridge if a cartridge is empty or will not print.
find even number in array
you do this 10 print "0112358132134" use the whole of the thing