by Dinesh Thakur Category: C Programming (Pratical)

 In this program required variable are declared for functioning criteria. Then using loop statement for fulfilling the requirement of repeat the process. Then to use if condition to check whether the number is prime or not. After finding the prime number the next process is to elaborate them using while statement or if condition if number division able by declare value then break the statement else it will increase the value for variable and then if (y==x) then return the value as required.

 
by Dinesh Thakur Category: C Programming (Pratical)

This program segment calculates the sum of integer numbers from 1 to n. Initially, the value of n is read from the keyboard and variable sum is initialized to zero. Then a for loop is set up in which the loop variable j assumes values from 1 to n. For each value of j, the assignment statement included in the for loop is executed and the value of j is added to the previous value of sum.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to make sum of upper and lower triangle of matrix. In this program user declare the array type Variable after declaring value to the variable if statement will be use to check whether the matrix is square or not. Else it will be going to enter elements for matrix. Loop statement will use to calculate the procedure for elements. For loop and control statements will use the procedure to make it. Then a print method will use to display the sum of upper triangle.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is the C program for converting a character into ASCII value.

 
by Dinesh Thakur Category: C Programming (Pratical)

 A structureincludes manyvariablesinto one.Works asa Report cardthat hasname, marks and total.Therecordwould bea structure.The structurethenis used to groupa set ofsimilar datanotforming anew data type.



 
by Dinesh Thakur Category: C Programming (Pratical)

This is C Program to calculate the sum of the elements of each row & column. A matrix is made of rows and columns. The program will add all the rows and the columns of the matrix.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C Program to Sum of Two Matrix. In this program user asks to add two matrixes. The array type variables are declared for containing the value. Here loop statement comes in use for laying the condition true nested for loop used for print the matrix in it. Then after the condition as follows the loop statement value is been entered for 2x2 matrix to print. Then another for loop to add the both matrix on it. And display the result on screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C Program Find the Factorial of N Number. This program is for finding the factorial of N number. Two integer type variables declared with static value one of them. Here to user enter the value for finding the factorial. Then loop statement for stepping forward to find the result and (f*I) and at last to print the output on the display.

 
by Dinesh Thakur Category: C Programming (Pratical)

 In this program user ask to compute Sine (trigonometric function) Series. The Variable of float or integer type declared that will be use to contain the value. User asks to enter the value and then the computation of PI function described. Here term variable used for temporary value container as in the program this variable contain the x1 and then swapped for Sine. For loop statement also been used for varying the condition. Then using compatible condition the output is displayed.

 

Page 3 of 18



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.