Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. • Write a program for printing all natural number numbers from 1 to n, where n is entered through the keyboard.
  2.  
  3. • Write a program to print all odd natural numbers from 1 to n, where n is typed through the keyboard.
  4. • Write a program to find the sum of all pairs of natural numbers from 1 to n, where n is entered through the keyboard
  5. • Write a program to find the sum of all odd natural numbers from 1 to n, where n is entered through the keyboard
  6. • Write a program to find the sum of the n arbitrary numbers that are entered in the cycle, n is entered through the keyboard
  7. • Write a program to find the arithmetic mean of n arbitrary numbers that are entered in the cycle, n is entered through the keyboard
  8. • Write a program to find the product of n arbitrary numbers that are entered in the cycle, n is entered through the keyboard
  9. • Write a program to find the sum of all positive numbers of n arbitrary numbers that are entered in the cycle, n enter through the keyboard
  10. • Write a program to find the sum of all negative numbers of n arbitrary numbers that are entered in the cycle, n is entered through the keyboard
  11. • Write a program for finding and printing all the natural integer numbers from the n entered integers. n is entered via the keyboard
  12. • Write a program to find and print all odd integers from n entered integers. n is entered via the keyboard
  13. • Write a program to find LCD of two integers.
  14. • Write a program to find all divisors of the natural number n, n is entered through the keyboard.
  15. • Examine whether a given natural number n is simple or complex. // How do we know this?
  16. • Write a program to find the LCM of two integers.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement