Answer:
# include<iostream>
#include<conio.h>
using namespace std;
void main ()
{
float r, area;
cout<<"Enter the radius of the circle";
cin>>r;
area = 3.14 * (r^2);
cout<<"\nArea of Circle= "<<area;
getch();
}
Explanation:
In this program, float is selected as data type for both radius and area. As, both the value can be in decimal. r is the name of radius variable. area represents the area of circle. By using cout and cin enter the value of radius. By applying formula, calculate the area and shown on output.
Answer:
bruh is this for real. Dang if it is im sorry for wasting an asnwer. if not ill give you what i think
Explanation:
I willl imma watch all ya videos
I’m not to sure what this is asking, if by selecting word- it means the word is already left-click selected, so it would be option 3. If not, then it would be option 2 I believe
In Python, assume that a file containing a series of integers is named numbers.txt and exist on the computer's disk. Write a program that reads the entire numbers store in the file and calculates their total.
Here is what I have written but it does not run:
def. main():
out file=open('numbers.txt','r')
temp=outfile.readline()
total=0
while temp!='':
t=int(temp)
total=total+i
temp=outfile.readline()
outfile.close()
print('Total sum is:',total)
main()
Text file is a file named numbers.txt with the numbers 1-50 in it
Learn more:
- The sum of three consecutive integers is 186. what are the integers
brainly.com/question/1768254
Keywords: python, integers, computer, numbers, program