public int findSum(int n1, int n2) { return n1 + n2; }
write a vb program to find the magic square
First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.
Write a program to find the grade obtained by the students of a class
Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
write an assembly language program to find sum of N numbers
program to find maximum of two numbers using pointers
VBnet program to find the prime numbers between 100 to 200?
k
i need this answer
Please visit http://talentsealed.blogspot.com/2009/10/to-find-sqaure-of-numbers-using-c.htmlfor the answer.
Since there is an infinite set of prime numbers the answer would be infinity.
for(int i = 1; i < 100; i+=2) { System.out.println(i); }
write a vb program to find the magic square
please somebody should help me answer this question..I have a project on it even! It seems almost impossible at the moment.
This would require some computer knowledge. It can make it easier to find out the prime numbers without figuring it out in your head.
The following is for F95 and later (due to the use of intrinsic SUM ): My assumptions: -Your numbers are integers -Your numbers are stored in an array -The numbers you are describing are 0-100 program findSum !I assumed integer, replace this with your data type integer, dimension(100) :: numbers integer :: sumOfNumbers !We populate an array with our numbers !Replace this with your numbers do i=1,(size(numbers)+1) numbers = i end do !We find the sum of those numbers sumOfNumbers = sum(numbers) !We write out the sum to prompt write(*,*) 'Sum is: ', sumOfNumbers end program findSum