40 Practice Questions For Training Test-1
40 Practice Questions For Training Test-1
2. Reverse a String
Write a C program to compute the Greatest Common Divisor (GCD) and Least Common
Multiple (LCM) of two numbers.
Write a C program to count the number of vowels and consonants in a given string.
8. Student Marksheet
Write a C program to generate a student's marksheet, calculate the total, percentage, and
grade, and determine if the student has passed.
Write a C program to count the number of pairs in an array whose sum is divisible by 2.
Write a C program to calculate the sum of the first N even numbers starting from 2.
Write a C program to merge two sorted arrays into a single sorted array.
Write a C program to check whether two given strings are anagrams of each other.