C Program to Find Perimeter of Rectangle

 #include<stdio.h>

void main()

{

    int l,b;

    printf("Enter length and breadth: ");

    scanf("%d %d",&l,&b);

    printf("Perimeter = %d",2*(l+b));

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices