C program to find the value of sin(x)

Write a C program to find the value of sin(x) using the series up to the given accuracy (without using user defined function) Also print sin(x) using library function. Read more about C Programming Language. /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use …

C program to find the GCD and LCM of two integers

Write a C program to find the GCD and LCM of two integers output the results along with the given integers. Use Euclids’ algorithm to find the GCD and LCM. Euclids’ algorithm uses the division algorithm which repeatedly divides starting from the two numbers we want to find the GCD of until we get a …

C program to find the sum of ‘N’ natural numbers.

Write a C program to find the sum of ‘N’ natural numbers. Natural numbers are the whole numbers except zero, usually we used for counting.Example:1, 2, 3, 4,———– Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal and learning purposes. For permissions to use the* programs …

C program to check whether a given integer number is positive or negative.

Write a C program to check whether a given integer number is positive or negative.Read more about C Programming Language . This program is available on GitHub @ https://github.com/snadahalli/cprograms/blob/master/posneg.c /************************************************************ You can use all the programs on www.c-program-example.com* for personal and learning purposes. For permissions to use the* programs for commercial purposes,* contact [email protected]* To find more C …

C program to check whether a given integer is odd or even.

Write a C program to check whether a given integer is odd or even.Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal and learning purposes. For permissions to use the* programs for commercial purposes,* contact [email protected]* To find more C programs, do visit www.c-program-example.com* and browse!* …

C program to find the simple interest , given principle, rate of interest and time.

C program to find the simple interest , given principle, rate of interest and time. Simple Interest is the money paid by the borrower to the lender, based on the principle amount, Interest rate and the time period.Simple interest is calculated by, SI=P*T*R/100 formula.Where, P is the principle amount.T is the time period.R is the …

C program to find the area of a circle, given the radius

C program to find the area of a circle, given the radius. This is the simple C program to find the area of the circle, Here we define the PI value as macros, because it is constant through out the program. Read more about C Programming Language . /************************************************************ You can use all the programs …

C Program To Swap Two Variables

C Program To Swap Two Variables without using the third variable. This type of C programs are asked in various Interviews.There are various methods to achieve this one. For example, a=a+b;b=a-b;a=a-b;Here we use the XOR(^) operator to Swap Two Variables without using the third variable. Read more about C Programming Language . /************************************************************ You can …

C Program to concatenate two strings

C Strings: Write a function to concatenate two strings, write a program to read three Strings and use the function to concatenate them and print it. String concatenation is the process of combining two or more strings to a single String. Here, we write the function for string concatenation, and passing the three strings to …

C Program to find the squares and cubes of a two digit odd number.

C Program to find the squares and cubes of a two digit odd number. In this Program, we check the number is odd and a two digit number, then calculates its square and cube. Read more about C Programming Language . [gist id=”7298250″] Read more Similar C Programs Searching in C C Strings You can …