Computer Science, asked by hrithik23, 1 year ago

how to bring output P=2(l+w) in C language

Answers

Answered by oraclenaren200palkoj
1
simple.
#include<stdio.h>
#include<conio.h>
void main()
{
int l,w;
float P;
clrscr();
printf("enter length and breath values:");
Scanf("%d%d",&l,&w);
P=2(l+w);
printf("perimeter:%.1f",P);
getch();
}

hrithik23: thnku so much
oraclenaren200palkoj: welcome
oraclenaren200palkoj: please mark me as brainliest
hrithik23: ok
Similar questions