Posts

Showing posts from March 26, 2020

Chapter 1 Program 2

Image
Also visit our YouTube Channel Tech Eos     VISIT CHANNEL /*      2. Find the area and perimeter of square and rectangle. Input the side(s) through the keyboard.      */ #include<stdio.h> #include<conio.h> void main() { int a , area_of_square , perimeter_of_square ;   //FOR Square         // FOR Rectangle int length , width , area_of_rectangle , perimeter_of_rectangle;   clrscr(); printf("\nEnter value of a : "); scanf("%d" , &a); // area of square formula -->>   (a*a) area_of_square = (a*a); //perimeter of square formula -->> (4*a) perimeter_of_square = (4*a); printf("\n\nArea of Square    :  %d " , area_of_square ); printf("\nPerimeter of Square :  %d " ,                     ...