for(int i = 1; i < 100; i+=2) {
System.out.println(i);
}
Without knowing what the numbers are, I would suggest taking the mean of the given numbers.
It is 1000.
165
Yes, do write, or if you're too lazy to your homework, use google.
where to start? do you have an algorithm and just want to implement it in java? depends on how big N is, as that will determine which method is most efficient
To write a C++ program to display the student details using class and array of object.
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
the following program will display all numbers given in the array in ascending order #include<stdio.h> void main() { int i,h,p; int numbers[10]={5,8,3,2,6,7,9,4,1,10}; for(p=0;p<=8;p=p+1) { for(i=0;i<=8;i=i+1) { if(numbers[i]>numbers[i+1]) { a=numbers[i]; numbers[i]=numbers[i+1]; numbers[i+1]=a; } } } for(i=0;i<=9;i=i+1) { printf("%d ",numbers[i]); } }
You do nothing! A sequence of numbers will contain no X and so nothing needs doing!
Reference: cprogramming-bd.com/c_page4.aspx#ODD%20 Numbers
ring me and ill explain - 086 22222222222222227 ring me
program to extract a given word from a file
Count all the given numbers then count all the numbers of a given value. Divide one by the other and multiply by 100. For instance, if there are 50 numbers in total and 5 of them have the value 42, then the percentage of numbers with the value 42 is 5 / 50 * 100 = 10%.
Use the following function to find the sum of a given column in an array of integers: int sum_column (int** array, unsigned int rows, unsigned int columns, unsigned int column) { assert (column<columns); int accumulator int row; accumulator = 0; for (row=0; row<rows; ++row) { accumulator += array[row][column]; } return accumulator; }
It is your face
Use for loop declare string array str[] and string variable l= string length of string array j=l for i=0 to i=l/2 then temp=str[i] str[i]=str[j-1] str[j-1]=temp j=j-1 now print str array it will be reversed
Without knowing what the numbers are, I would suggest taking the mean of the given numbers.