0

Why my code show error ?

#include <stdio.h> int area(int x); int main() { int x; int a=area( x); scanf("%d",&x); printf ("the area of %d radius circle is :%d",x,a); return 0; } int area(int x) { x=x++; return (x); }

11th Dec 2020, 4:24 PM
RD:programmer
RD:programmer - avatar
4 odpowiedzi
+ 2
Mr. Unknown How can you use "x" before taking input 😁. Just change the line: scanf <--> int a
11th Dec 2020, 4:57 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
Ohh! I put right formula 22/7*r*r but because of the code show error frequently l used some other equation to see where is the error ?And it copied and pasted here ....
11th Dec 2020, 4:56 PM
RD:programmer
RD:programmer - avatar