10 cls
20 end
30 next
40 print
To write a C++ program to display the student details using class and array of object.
maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know
How to write a program for mouse in microprocessor?
I suggest using an array with as many elements as the longest row you need. To keep it simple, keep two copies of the array, and calculate each element of the "new" array as the sum of the corresponding element, plus the previous element, of the "old" array. Then copy the information back for the next step.
Accept 5 numbers in an array and display it.
To write a C++ program to display the student details using class and array of object.
write an assembly language program to find sum of N numbers
maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know
How to write a program for mouse in microprocessor?
I suggest using an array with as many elements as the longest row you need. To keep it simple, keep two copies of the array, and calculate each element of the "new" array as the sum of the corresponding element, plus the previous element, of the "old" array. Then copy the information back for the next step.
You don't need an array for that. Just do the multiplication, for example: result = factor1 * factor2; Or: result = 5 * 8;
Accept 5 numbers in an array and display it.
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.
To find the median of an array of numbers, first, arrange the numbers in ascending order. If the array has an odd number of elements, the median is the middle number. If the array has an even number of elements, the median is the average of the two middle numbers.
Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.
The GWBASIC comma operator is used to format the output of the PRINT command, placing the value to be printed in the next print zone rather than immediately after the previous value. Note that GWBASIC divides each line into zones of 14 spaces each. The comma operator also has other purposes, such as when filling a string with the same character. For example: 10 X$ = STRING$(10,45) 20 PRINT X$"HELLO WORLD"X$ RUN ----------HELLO WORLD---------- The comma operator is also used to separate the dimensions of a multi-dimensional array, such as the following 2x3 array: A(2,3)
for(int i = 1; i < 100; i+=2) { System.out.println(i); }