How to check if a given number is Fibonacci number?
# python program to check if x is a perfect square import math # A utility function that returns true if x is…
# python program to check if x is a perfect square import math # A utility function that returns true if x is…
# Function for nth Fibonacci number def Fibonacci(n): if n<= 0: print("Incorrect input") …
# Python Program to find position of n\'th multiple of a number k in Fibonacci Series def findPosition(k…
# Python program to check if given number is prime or not num = 11 # If given number is greater than 1 if nu…
# Python program to find Area of a circle def findArea(r): PI = 3.142 return PI * (r*r); # Driver method …
# Python program to print all prime number in an interval def prime(x, y): prime_list = [] for i in rang…
# Python program to determine whether the number is Armstrong number or not # Function to calculate x raised…
# Python3 program to find compound interest for given values. def compound_interest(principle, rate, time): …
# Python3 program to find simple interest # for given principal amount, time and rate of interest. def simp…
# Python 3 program to find factorial of given number import math def factorial(n): return(math.factorial(n…
# Python3 program to add two numbers number1 = input("First number: ") number2 = input("\nSeco…
# Python3 program to add two numbers num1 = 15 num2 = 12 # Adding two nos sum = num1 + num2 # printing values…
#include <stdio.h> int main() { int i, space, rows, k = 0; printf("Enter the number of rows:…
#include <stdio.h> int main() { char s[] = "Programming is fun"; int i; for (i = …
#include <stdio.h> int main() { int base, exp; long double result = 1.0; printf("Enter…
#include <stdio.h> int main() { int i, j, rows; printf("Enter the number of rows: "); …
#include <stdio.h> int main() { int n, i, flag = 0; printf("Enter a positive integer: ");…
#include <stdio.h> void reverseSentence(); int main() { printf("Enter a sentence: "); …
#include <stdio.h> int main() { int n, reversed = 0, remainder, original; printf("Enter an i…
#include <stdio.h> int main() { int n, rev = 0, remainder; printf("Enter an integer: "…