C Program Examples

C Program to Print an Integer Entered by the User

C Program to Calculate the Area of A Rectangle: (a) Using hard coded inputs (b) Using inputs supplied by the user

C Program to Convert Celsius (Centigrade degrees temperature) to Fahrenheit

C Program To Calculate Simple Interest For A Set Of Values Representing Principle, No Of Years, And Rate Of Interest

C Program To Check Whether A Number Is Divisible By 97 Or Not

C Program To Find Whether A Year Entered By The User Is A Leap Year Or Not

C Program To Determine Whether A Character Entered By The User Is Lowercase Or Not

C Program To Print The Multiplication Table Of A Given Number N

C Program To Sum The First Ten Natural Numbers Using A While Loop

C Program To Calculate The Factorial Of A Given Number Using For Loop

C Program To Check Whether A Given Number Is Prime Or Not Using Loops

C Program Using A Function That Calculates The Sum And Average Of Two Numbers. Use Pointers And Print The Values Of Sum And Average In main()

C Program To Take A String As An Input From The User Using %c And %s. Confirm That The Strings Are Equal.

C Program To Count The Occurrence Of A Given Character In A String

C Program To Check Whether A Given Character Is Present In A String Or Not

C Program For Check You Are Eligible For Voting Or Not

C Program To Check Number Is Armstrong Or Not using While Loop