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 do this 10 print "0112358132134" use the whole of the thing
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.
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
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.
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.
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); }
you do this 10 print "0112358132134" use the whole of the thing
find even number in array