Open
0

Can anyone tell me this programme is right or not? If it is right than y it's not running in my programming hub compiler?

#include <stdio.h> int main() { int length,breadth; printf("what is the length of rectangle\n"); scanf("%d", &length); printf("what is the breadth of rectangle\n"); scanf("%d", &breadth); printf("the area of your rectangle is %d" &length*breadth); }

29th Apr 2021, 7:36 PM
Abhay Verma
Abhay Verma - avatar
1 Answer
+ 4
Abhay Verma Last statement is wrong. There should be printf("the area of your rectangle is %d", length * breadth);
29th Apr 2021, 8:01 PM
A͢J
A͢J - avatar