Programming_Questions
Programming_Questions
4. Write a program to print the size of various data types in your programming language.
6. Write a program to find the largest of three numbers using if-else statements.
11. Write a program to print the first 10 natural numbers using a for loop.
12. Write a program to calculate the factorial of a number using a while loop.
21. Write a function to calculate the greatest common divisor (GCD) of two numbers.
22. Write a function to check if a number is palindrome.
28. Write a program to count the number of 1's in the binary representation of a number.
35. Write a program to find the bitwise AND, OR, and XOR of two numbers.
36. Write a program to find the largest and smallest elements in an array.
37. Write a program to calculate the sum and average of elements in an array.
40. Write a program to merge two sorted arrays into a single sorted array.
46. Write a program to find the second largest element in an array using a loop.
48. Write a program to count the occurrences of each vowel in a given string.
49. Write a program to print the binary representation of numbers from 1 to 10.
50. Write a program to generate all prime numbers less than a given number.