# Gradle - Fabricating Systems Hands-on Solutions | TCS Fresco Play

Gradle - Fabricating Systems Hands-on Solutions

Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.

Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).

All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!

Course Path: Mobility & Wearables/BUILD TOOLS/Gradle - Fabricating Systems

1.Try it out - Fibonacci Sequence
Welcome to Gradle program to generate Fibonacii series

def fib(n)
{
int first_num = 1
int second_num = 1
if(n==1)
println first_num
else if(n==2)
println first_num + " "+second_num
else if (n > 2)
{
print first_num + " "+second_num
int i = 3
while(i<=n)
{
int z = first_num + second_num
print " "+z
first_num = second_num
second_num = z
i = i+1
}
}
}
doLast
{
int n = Integer.parseInt(num)
println "First"+n+"fibonacci numbers:"
fib n
}
}

2.Try it out - Play with Dependencies

project(':projectA'){
}

3.Exercise to Build Java Project
Welcome to Gradle program to calculate area of circle and square

doLast {
println 'area of circle is = '+area
}
}
doLast {
double area = Double.parseDouble(side)*Double.parseDouble(side)
println 'area of circle is = '+area
}
}

```