AIM
AIM
#include <stdio.h>
#include <conio.h>
void main(){
clrscr();
int a,b;
printf("Enter a number:");
scanf("%d",&a);
printf("Enter a number:");
scanf("%d",&b);
}
Program:TO FIND PERIMETER AND AREA OF
RECTANGLE
#include <stdio.h>
#include <conio.h>
void main(){
clrscr();
/*declaration*/
int l,b,pr,ar;//l for length, b for
breadth, pr for perimeter and ar for area
//input
printf("Enter the length of the
rectangle:");
scanf("%d",&l);
printf("Enter the breadth of the
rectangle:");
scanf("%d",&b);
//perimeter
//area
ar=l*b;
//output
printf("The Perimeter of the rectangle is:
%d\n",pr);
printf("The Area of the rectangle is: %d\
n",ar)
getch();
}