My issue
include <stdio.h>
int main(void) {
int l,b,Area,Perimeter;
l = 11;
b = 13;
Area = lb;
Perimeter = 2(l+b);
printf(“Area of the rectangle is %d\n”,lb);
printf(“Perimeter of the rectangle is %d\n”,2(l+b));
return 0;
}
so the above one was my code and the output is:
Area of the rectangle is 143
Perimeter of the rectangle is 48
when i have submitted the above code it showed me wrong output y?
My code
#include <stdio.h>
int main(void) {
printf("%d\n",11*13);
printf("%d\n",2*(11+13));
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone