Question: Day 4 assignments Number Checker Write a program that let the user enter a number and checks if a given number is prime, is even,

Day 4 assignments
Number Checker
Write a program that let the user enter a number and checks if a given number is prime, is even, is Palindrome, and find it's factorial
Example:
input 5
output: prime: yes,
even:no,
palindrome: yes
factorial: 120
Fibonacci Sequence
Implement a program that prints the first N numbers in the Fibonacci sequence.
Example: Input: 5 Output: 0,1,1,2,3
Count Vowels in a String
Write a program that counts the number of vowels (a,e,i,o,u) in a given string.
Example: Input: "hello" Output: 2
Reverse a String
Create a program that takes a string and returns it in reverse order.
Example: Input: "hello" Output: "olleh"
Sum of Primes
Implement a program that calculates the sum of all prime numbers less than a given number.
Example: Input: 10 Output: 17(2+3+5+7)
Matrix Multiplication
Write a program to multiply two matrices and display the result.
Example: Given two 22 matrices, multiply them and show the resultant matrix.
Unique Elements in Array
Create a program that takes an array of integers and returns an array of unique elements.
Example: Input: [1,2,2,3,4,4,5] Output: [1,2,3,4,5]
Rotate Array
Write a program that rotates an array to the right by a given number of positions.
Example: Input: [1,2,3,4,5], Positions: 2 Output: 4,5,1,2,3
Using C#
Do it with hand writen no use for chatgtp and bard ,cleen code
Day 4 assignments Number Checker Write a program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!