Showing posts with label Toph-Easyproblems. Show all posts
Showing posts with label Toph-Easyproblems. Show all posts

Sunday, October 27, 2019



Programing problem : Toph-EasyProblems-Missing number






Solution : Code in C  language 

#include<stdio.h> int main() { int a,b,c,d,e,f; scanf("%d",&a); scanf("%d %d %d",&b,&c,&d); e=b+c+d; f=a-e; printf("%d",f); return 0; }


Programing problem : Toph-Easyproblem-Pie Are Squared


Given the radius of a circle, calculate and print its area.
The area of a circle can be computed using the following formula:
A = \pi r^2
For pi, you can use 3.141592653589793, or acos(-1).

Input

The input will contain one floating point number r (r < 2000).

Output

Print the area of the circle (accurate to 10-4).


Solution : Code in  C  language 


#include<stdio.h> int main(){ int r; double pi=3.141592653589793,area; scanf("%d",&r); area=pi*r*r; printf("%f",area); return 0; }





Programing Problem:Add Them Up


Solution : Code  in C language 

#include<stdio.h> int main () { int a,b,sum; scanf("%d",&a); scanf("%d",&b); sum=a+b; printf("%d",sum); return 0; }

Programing Problem : Copycut





solution : Code in C language 

#include<stdio.h> int main () { int a; scanf("%d",&a); printf("%d",a); return 0; }

Categories

About Me

My photo
I am Md Fakhrul Islam. I am a student of EEE of Daffodil International University I am expert in SEO and Graphic designing.

Contact Form

Name

Email *

Message *

Popular Posts