C Program to Read Coordinate Points and Determine its Quadrant

This is a C Program to read a coordinate point in a xy coordinate system and determine its quadrant. Problem Description This C Program read a coordinate point in a XY coordinate system and determine its quadrant. Problem Solution The program accepts X and Y. Depending on the value of X and Y we need … Read more

advertisement

C Program to Interchange Diagonals of Matrix

This is a program to accept a matrix of order MxN & interchange the diagonals. Problem Description This C Program accepts matrix of order MxN & interchange the diagonals. This program first accepts the matrix. Then exchange diagonals of the matrix. Problem Solution 1. Create a matrix of some order and define its elements using … Read more

advertisement

C Program to Find the Area of Different Geometrical Shapes

This is a C Program to find the areas of different geometrical figures. Problem Description This C Program finds the areas of different geometrical figures. Problem Solution The program is menu driven program. This has 4 options that can be chosen by the user. The 4 options are 1) area of circle 2) area of … Read more

advertisement

C Program to Check if Two Numbers are Equal

This is a C program to accept two integers and check if they are equal. Problem Description This program accepts two integers and check if they are equal or not. Problem Solution 1. Take the two integers as input. 2. Using if,else statements check if they are equal or not. 3. Print the output accordingly … Read more

advertisement

C Program to Find the Sum of First 50 Natural Numbers using For Loop

This is a C Program to find the sum of first 50 natural numbers using for loop. Problem Description This C Program finds sum of first 50 natural numbers using for loop. Problem Solution It displays the sum of first 50 natural numbers as output. Program/Source Code Here is source code of the C program … Read more

advertisement

C Program to Check if the Substring is Present in the Given String

This is a C program to check if the substring is present in the given string. Problem Description This C Program checks the substring is present in the given string. Problem Solution The program accepts both string and substring. Then checks whether the substring is present in the given string. Program/Source Code Here is source … Read more

advertisement

C Program to Illustrate how User Authentication is Done

This is a C program to illustrate user authentication. Problem Description This C program asks for the user name & password and displays the same to illustrate user authentication. Problem Solution 1. Take the user name & password as input. 2. Print the each character of password as * while receiving it. 3. Now print … Read more

advertisement

C Program to Find Volume and Surface Area of a Cube

This is a C Program to compute the surface area & volume of a cube. Problem Description This C Program computes the surface area & volume of a cube. Problem Solution The formula used to find the surface area and volume of the cube is surface_area = 6 * (a * a) and volume = … Read more

advertisement

C Program to Find GCD and LCM of Two Integers

GCD (Greatest Common Divisor) GCD stands for Greatest Common Divisor. GCD of two numbers is the largest positive integer that completely divides both the given numbers. Example: GCD(10,15) = 15, GCD(12,15) = 3. LCM (Least Common Multiple) LCM stands for Least Common Multiple. It is a method to find the lowest common multiple between the … Read more

advertisement

Prime Number Program in C

What is Prime Number in C? A prime number is a natural number that is greater than 1 and is only divisible by 1 and itself. In other words, no number except the number itself, and 1 can divide a prime number. Example: 2, 3, 5, 7, 11, 13, 17, 19 …., etc. Problem Description … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.