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 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
output: prime: yes,
even:no
palindrome: yes
factorial:
Fibonacci Sequence
Implement a program that prints the first N numbers in the Fibonacci sequence.
Example: Input: Output:
Count Vowels in a String
Write a program that counts the number of vowels in a given string.
Example: Input: "hello" Output:
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: Output:
Matrix Multiplication
Write a program to multiply two matrices and display the result.
Example: Given two 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: Output:
Rotate Array
Write a program that rotates an array to the right by a given number of positions.
Example: Input: Positions: Output:
Using C#
Do it with hand writen no use for chatgtp and bard cleen code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
