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? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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