Introduction :- If you’re beginner then this is the right path to start , so make as many program as you can to understand basics of any programming language .
I love ❤️ programming and my passion 😎 is to teach my friends 😉programming concepts . If you have any doubts I will always be ready for you 😎 .
Profit 🏆 :- The best way to learn any programming language is to make program in it. No matter which language you choose, just make all these below programs in that language . You will learn that language I can assure you .
When you respond back 📧 what was your experience about these questions I will be happy . If you want to edit these questions then you’re free to give suggestions in the comment 💬 down bellow .
Let’s start -
Input & Output :-
- Take an integer and print it as it is
- Take a char and print it as it is
- Take an integer and print its octal value
- Take an integer and print its hexadecimal value
- Take an integer and print its character value
- Take a char and print its ascii value
- Print your name, age and city
- Take a larger number (greater than 10¹⁰) as input and print it as it is
- Take two integer and one char and print them
- Take decimal number and print it as it is
Arithmetic Operation :-
- Add and subtract two numbers
- Multiply two numbers
- Swap two numbers using third variable
- Swap two numbers without using third variable
- Find area and perimeter rectangle (length & width given)
- Find circumference and area of circle (radius given)
- Calculate simple interest
- Calculate compound interest
- Temperature conversion from celsius to fahrenheit
- Temperature conversion from fahrenheit to celsius
- Find third angle of triangle first and second is given
- Convert days into years, weeks and days
- Calculate square and cube of given number
- Take your ten friends phone number as input and print their sum
- Find nth term in arithmetic series ( given first term and difference )
- Find sum of given arithmetic series ( given first term , difference and number of terms )
Conditional Statement (if-else if-else, switch) :-
- Number is positive or negative
- Number is even or odd
- Greatest of two numbers
- Greatest of three numbers
- Leap year or not
- Check whether input is vowel or consonant
- Check uppercase and lowercase
- Check divisibility
- Win or loss the toss
- Find number of days in month
- Simple calculator application
- Fun with number appears on dice ( 1 to 6 )
- Check passing criteria for a student given marks in exam
- Check eligibility for voting of a person given age
- Check type of triangle all three sides are given
- Take your ten friends phone number as input and show minimum & maximum number among them
- Find roots of quadratic equations
Loop (for, while, do-while) :-
- Print even numbers from 1 to n
- Print alphabets from a to z
- Print table of given number
- Sum of first N natural numbers
- Sum of natural numbers in given range
- Take n numbers and print their addition & average
- Take n numbers and print their ,multiplication
- Factorial of a number
- Number of digits in a number
- Sum of digits of a number
- Reverse a given number
- Number is palindrome or not
- Power of a number
- Find HCF of two numbers
- Find LCM of two numbers
Print Pattern :-
( These problems are based on for loop )
( For all pattern we have taken n as 5 you can take as your choice )
( For all patters solutions are available here )
1. Pattern-1
2. Pattern-2
3. Pattern-3
4. Pattern-4
5. Pattern-5
6. Pattern-6
7. Pattern-7
8. Pattern-8
9. Pattern-9
10. Pattern-10
11. Pattern-11
12. Pattern-12
13. Pattern-13
Array :-
- Take input an array and display it as it is
- Take input an array and display it in reverse order
- Take input an array and search given element in the array (Linear search)
- Take input an array and search given element in the array (Binary search)
- Take input an array and find average of elements present in the array
- Copy one array to another array
- Find frequency of given element in array
- Reverse element of array in-place
- Square all elements of array
- Insert new element in array at given position
- Delete element from array from given position
Iterative Sorting :-
- Selection sorting
- Insertion sorting
- Bubble sorting
String :-
- Take string as input and print it
- Take paragraph as input and print it as it is
- Count number of vowel , consonant & digit in given word
- Count number of vowel , consonant , digit & space in given paragraph
- Reverse given string
Function :-
- Return largest among two number using function
- Return sum of two numbers using function
- Return sum of array using function
- Return frequency of given element in array
- Return frequency of given character in string
Recursion :-
- Find factorial using recursion
- Find fibonacci series using recursion
- Return number of digits in a number using recursion
- Linear search recursively
- Binary search recursively
“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” — Martin Fowler
Originally published at https://cp-dsa-algo.blogspot.com on February 13, 2021.