dimanche 30 mai 2021

Pizza house using array and loop [closed]

Description:
Hope you may all like pizza. Mr. Jonathan Has a pizza shop.In his shop there are some knives to cut different length of pizza . You are one of his Employee and he will give you a circumference of a pizza . Now you have to tell that what is the length to cut the pizza in two equal parts.

Input:
The first line conatins T<=100 which indicates the test case you will be given areal and positive number n . n<=1000.

Output:
For each number , print the test case number and then print the result (3 digits after point)

Aucun commentaire:

Enregistrer un commentaire