Computer Science, asked by abhijeet00717, 10 months ago

#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 creativemr24
0

Answer:

error

Explanation:

because there were many mistakes please prefer to a computer teacher

Answered by AneesKakar
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