1002 - Area of circle| URI Online Judge Solution | C | C++ | Python | Java
1002 - Area of circle | URI Online Judge:
1002 - Area of circle| URI Online Judge Solution
Main Problem Link - https://www.urionlinejudge.com.br/
Problem Name: Area of circle
Problem Number : URI Problem 1002
Solution Online Judge : URI Online Judge Solution
Level: Beginner
Solution Language : C | C++ | Python | Java
Steps to Follow to Solve this Problem:
- প্রথমে পাই এর মান ইনপুট নিতে হবে
- বৃত্তের ক্ষেত্রফলের সূত্র একটি ভেরিয়েবলে লিখতে হবে
- প্রসেস করতে হবে ।
URI Solution 1001 Code in C++:
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- double r,a = 0;
- cin>>r; a = 3.14159 * r*r;
- cout<<fixed<<setprecision(4)<<"A="<<a<<endl;
- return 0;
- }
URI Solution 1001 Code in Python:
- class Student:
- tStudent = 0
- def __init__(self, name, roll):
- self.name = name
- self.roll = roll
- Student.tStudent += 1
- def display(self):
- self.infoAboutClass()
- print("Name: %s\nRoll: %s" % (self.name, self.roll))
- @staticmethod
- def infoAboutClass():
- print("=============== Student Information ===============")
- @classmethod
- def totalStudent(cls):
- print(cls.tStudent)
URI Solution 1001 Code in Java:
- public class HelloWorld {
- public static void main(String[] args) {
- // Write your code here
- }
- }
No comments