If you are learning C programming, or you want to learn, then this post can be very useful for you, because in today's post "10+ basic program in C", we are going to talk about how we can print programs in C and understand it's logic. You will know that C language is a popular programming language, and if you know C language well, then you can learn any programming language very easily. In this post, we have covered 10+ basic programs, which can help you a lot in beginner level.
Also Read:- Introduction Of C Programming
10+ basic program in C | download pdf
In this post we have discussed only basic level program, if you want intermediate C program then you have to wait a bit, you will get all kinds of programs on this website, now this pdf is beginner level, after that you will get intermediate Level, standard level, file handling and other types of PDFs are available to you. So you keep visiting this website daily, so that no important pdf is missed from you.How to make Calculator using Switch In C
After learning basic C programming you can create a calculator, the calculator in the pdf file is very simple, as soon as you copy the calculator's program and paste it into your C editor, and compile the program, and the program is run After that you have to enter two numbers in it, and then after that you will see 5 option, like:- Addition, Subtraction, multiply, divison .And 5th option will give you all the operations, you only have to enter option number while choosing the option. If you have any problem, you can comment and ask.Also Read :- How to make calculator Using javascript
How to print A to Z using for loop in C
This program is very simple, and using this program you can also print A to Z, this program is based on ASCII value, if you know the ASCII code, you will be able to understand this program easily.How to print any table in C using for loop
This program is very simple and many times it has also been asked in many exams, in this program only the user has to enter any value, the value of which he needs a table, after entering the value your table will be printed, for example : - If you want to print a table of 8, then when you are asked to enter a value, you enter 8, after that the table of 8 will be printed. If you are facing any error, then you can ask by commenting.Also Read:- Best 3 way to print table In C Language
How to print 1 to 100 In C using for loop
Using this program you can print as many numbers as you want, but in this program we have printed only up to 100 numbers, you can print even more numbers by increasing their sentences.How to calculate digit in a number In C
First of all, we understand what is the work of this program, after all what will this program calculate, Example: - As soon as you run the program, it will ask for a number from you, suppose the user entered 1234, then this program is 1234 Will calculate something like this (1 + 2 + 3 + 4). Now you have understood what it is to calculate digit, this program may be a bit tough for you, but when you try, you can easily Will be able to understand it.How to Check given number is Prime number or not In C
This is a very important question, and this question has been asked many times. First of all, we should know what is a prime number . A prime number is a number that is only divided by itself and is not divisible by any number. for example: - 3,5,7,11 These are all prime numbers, because they are divided by their own number, and are not divisible by any number. To check prime number, you have to think a logic, after all how will you check whether the given number is prime number or not.Also Read:- Print Diamond Pattern in C langauge
How to print 1 to 100 All prime number In C
In the earlier program, we saw how we check the prime number, and in this program we will print all the prime numbers between 1 to 100.How to find biggest number among three number In C
You can solve this program in two ways, either you use the if-else ladder or the And (&&) operator, the program is correct in both ways, but when you use the if-else ladder in the program ,becomes a little complex, in the pdf file we have solved this program with the help of the And (&&) operator, if you know operators in c ,then you can solve this program very easily.How to swap two numbers without using third variable In C
If you don't know what is swap, let's first see what is swapping, if you have two different boxes, which have different contents, and you want that you both box Change the contents of each other, but do not change the box, it is called swapping. In this program you have to swap the values of two variables among themselves. If you encounter any error in this program, you can comment and ask.How to check given number is odd or even In C
This program is very simple, if a number is divided by 2 and the remainder is 0, then the given number is even, not odd, just put this condition in the paranthesis of the if statement, and then the number Let's check whether the given number is odd or even.Also Read:- Coronavirus Prank program in C Language
If you liked this post "10+ basic program in C", then let us know by commenting. you must follow our Facebook page for C programming quize. If you have a problem related to C language, then you can ask us by commenting.Subscribe our blog by e-mail to get latest post on your inbox .
0 Comments
Hey , Comment Your Query or Suggestion