Tutorial sheet-Algorithms and programming
Tutorial sheet-Algorithms and programming
Write a C program that takes two numbers as input from the user and prints their sum.
Write a C program that takes a number as input and checks if it's odd or even.
Write a C program that takes two numbers as input and prints the largest number.
Write a C program that takes three numbers as input and prints the largest number.
6. Factorial of a Number
Write a C program to calculate the factorial of a given number (use both iterative and recursive
methods).
7. Fibonacci Series
9. Palindrome Check
Write a C program that takes a string as input and counts the number of vowels and consonants.
Write a C program that takes an array of integers and calculates their sum and average.
Write a C program to sort an array of integers in ascending order using the Bubble Sort algorithm.
Write a C program to search for a specific number in an array using Linear Search.
Write a C program that takes two 2D arrays (matrices) as input and adds them together.
Write a C program that takes a number as input and prints its multiplication table.