Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
749 views
in Programming by (80 points)
Write a PL/SQL program to find greatest of three numbers and print Fibonacci series up the largest number found.

Please log in or register to answer this question.

1 Answer

0 votes
by (20 points)
#greatest number

a=int(input("Enter the first number"))

b=int(input('Enter the second number"))

c=int(input("Enter the third number"))

if (a>b and a>c):

    print(a,"is the greatest of three numbers")

    lim=a

elif (b>c):

    print(b,"is the greatest of three numbers")

    lim=b

else:

    print(c,"is the greatest of three numbers")

    lim=c

#to select the limit

z=0,x=1

print(z)

print(x)

for i in range(2,lim+1):

    z=x

    x=i

    print(z+x)

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...