how to bring output P=2(l+w) in C language
Answers
Answered by
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();
}
#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
Similar questions
World Languages,
8 months ago
Computer Science,
1 year ago