C PROGRAM TO FIND AREA AND PERIMETER OF A SQUARE

Опубликовано: 04 Ноябрь 2024
на канале: PRINCE OF PROGRAMMING
440
like

#C #CTUTORIAL #SQUARE #AREAOFSQUARE #PERIMETEROFSQUARE #MATHEMATICS #CPROGRAMTOFINDAREAOFSQUARE #SIDELENGTH #AREA #PERIMETER #CPROGRAM_TO_FIND_AREA_OF_SQUARE #CLANGUAGE #CPROGRAM #CPROGRAMMING #youtubechannel #youtube #youtuber #youtubers #subscribe #youtubevideos #sub #youtubevideo #like #instagram #programming #coding #programmer #python #developer #technology #code #coder #computerscience #tech #software #codinglife #linux #softwaredeveloper #programmingmemes #programmers #programminglife #hacking #machinelearning #php #computer #softwareengineer #bhfyp

Welcome to my channel Prince of Programming👨‍🎓

   / @princeofprogramming  

This tutorial will give you a full introduction into the C PROGRAM TO FIND AREA AND PERIMETER OF A SQUARE

   • C PROGRAM TO FIND AREA AND PERIMETER ...  

Give this video a thumps up👍

Share & subscribe for more videos😏

Show your support to recover the channel❤

Click the bell icon to get notified for new videos🔔

Feel free to drop your doubts in the comment section📗

TOPIC - C PROGRAM TO FIND AREA AND PERIMETER OF A SQUARE
   • C PROGRAM TO FIND AREA AND PERIMETER ...  

*) A plane rectangle with four equal sides and four right angles is called a square.

*) We can compute the area of a square if we know the length of its sides.

*) To find the area of a square, we multiply its side with itself.(side square)
Area of Square = Side * Side
where Side is the length of any side of square.

*) To find the perimeter of a square, we should add the length of all four sides of square.

*) As all sides of a square are equal, The perimeter of a square is equal to 4 times the side of square.
Perimeter of Square = 4 * Side
where Side is the length of any side of square.

*) This program needs one float variable for side and two output variables for area, perimeter.

*) We need a printf( ) statement to ask the user to enter the input.

*) Then we need a scanf( ) statement to read the input from the keyboard.

*) We need to calculate the area and perimeter of the square using expressions.
area = side * side ;
perimeter = 4 * side ;

*) Then we need a printf( ) statement to print the output to the screen.