matrix
write an assembly language program to find sum of N numbers
printf("%s",per>50?:"pass",per<50?:"fail");
int sum = 0; int n = 0; while( sum <= 999 ) { sum += (++n); }
Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11
no thanks
Did you know that memory allocation is not needed to display the matrix? However, the C program is to find the sum of all the elements.
Writing a program for a sum of sine series requires a rather long formula. That formula is: #include #include #include main() { int i,n,x; .
In Java:sum = 0;for (i = 2; i
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); }
program SumAndDifference; var num1, num2, sum, difference: integer; begin write('Enter first number: '); read(num1); write('Enter second number: '); read(num2); sum := num1 + num2; difference := num1 - num2; if sum > difference then written('The sum is greater: ', sum) else written('The difference is greater: ', difference); end. This program will prompt the user to enter two numbers, calculate their sum and difference, and then compare the two values. If the sum is greater than the difference, it will display the sum; otherwise, it will display the difference.
This is a directive, not a question.