by Dinesh Thakur Category: C Programming (Pratical)

If the amount deposited in a bank (i.e., principal), number of years and interest rate are denoted asp, n and r, respectively, compound interest (compounded annually) as p(1+r/100)n. The program segment given below calculates and prints compound interest on deposit.

 
by Dinesh Thakur Category: C Programming (Pratical)

 This is C Program to Swap Two Numbers Using Pointer. In this program the two numbers to be swapped from each other place with the use of pointer this concept works on the address reference. In program the variables declare for storing the value in it. Here a variable named ‘temp’ also declared with the use of only two numbers the swapping will happen interference of temp variable the first number shifted to temp and then to other variable the reverse phase will be on the move to swap both numbers. And other functionality also comes in light for displaying the result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is a C program where user asks to enter the value of matrix (order of matrix) and to find the transpose of matrix order. Means the rows will convert through columns what else the order of matrix. 

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to calculate the gross salary of employees. To calculate the gross salary all the facts in salary like da,hra,basic salary also included. The addition of all salary element show out the gross salary chart.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this example, a for loop is used to determine the factorial of a given number, a. The variable a itself is used as the loop variable. As the value of variable a will be initialized when the scanf statement is executed, the initial expression in the for loop is not required and is omitted.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C Program to Reverse the String using Recursion. In this Program user ask to reverse the string with the use of recursion function. Char type variable is a casual call for containing the value. In this program majorly the reverse function will come in use and some where the use of if condition too. The first instance program asks to put the line of text. Then after the reverse function and so on but in next move the if condition comes to check the condition for reversing the string if it’s take right then the reverse function will reverse the function and then display the reversed content on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

 This is C Program Write a Magic Number Program. In this program user ask to guess whether the guessed number is correct or not. The casually in this program the Control Statement will be used like if-else. If the guessed number is equal to the number that set for variable then it’s right else it will be wrong the variable declared which use to contain the given value for condition checks out. After the condition got completed the result will be on the display.

 
by Dinesh Thakur Category: C Programming (Pratical)

Let us use variables a, b and c (all of type int) to represent three integer numbers and variable max (also of type int) to represent the maximum of them.

 
by Dinesh Thakur Category: C Programming (Pratical)

 In this program user asks to find out the Student grade and marks. User define strut concept in this program and the array type variable for storing the liable value. Here user asking to enter the required fields like roll no, name and marks of student. After declaring all the user using control statement as nested if-else for marking out the status about passing or fail criteria here user insist a condition if(s[k].m1>=35 && s[k].m2>=35 && s[k].m3>=35) then pass else fail. After finding out this one user find out the total obtaining marks of students.

 
About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Search Content