#include <stdio.h>
#include <conio.h>
void main()
float pi= 3.142;
int radius = 2;
float area;
clrscr ;
area = pi radius*radius:
printf("%f", area);
getch ( ;
What will be the output
Answers
Answered by
0
Answer:
error
Explanation:
because there were many mistakes please prefer to a computer teacher
Answered by
0
When you will compile your code it will show Error, as there are many mistakes....
In order to get an output, your code should be as follows...
#include<stdio.h>
#include<conio.h>
void main () {
float pi = 3.142;
int radius = 2;
float area;
clrscr () ;
area = pi * radius * radius ;
printf("%f", area);
getch ( ) ;
return 0 ;
}
This code will give you output as.... 12.56
>>Hope this helps!!... :)
Similar questions
Computer Science,
5 months ago
Math,
5 months ago
Math,
5 months ago
Math,
1 year ago
Science,
1 year ago