- Find the area of a circle of radius r.
- Find the area of a parallelogram of base B and height H.
- Find the area of a rectangle of length L and width W.
- Find the area of a square of length L.
- Find the area of a triangle of lengths a, b, c.
- Find the area of a triangle of base B and height H.
- Find the perimeter of a circle of radius r.
- Find the perimeter of a rectangle of length L and width W.
- Find the perimeter of a right triangle of lengths of the 2 legs a and b.
- Find the perimeter of a square of length L.
- Find the perimeter of a triangle of lengths a, b, c.
- Find the volume of a cube of length L.
- Find the volume of a pyramid with base area A and height H.
- Find the volume of a prism of length L, height H and width W.
- Find the volume of a sphere of radius r.
- Write a program to compute the arithmetic mean of 2 numbers a and b.
- Find the sum of an arithmetic series, where the first element is a1, …
- You read a number of 3 digits. Eliminate 1 digit so that you obtain t…
- Write a program which reads a number n and outputs its control digit.
- Write a program to convert decimal number to binary format.
- We consider coordinate points A(x1,y1) and B(x2,y2) in space. Find th…
- We consider coordinate points A(x1,y1) and B(x2,y2) in space.
- Write a program which reads a number n formed of 4 digits.
- Write a program which reads a number n formed of 4 digits. Write an a…
- Elimitate de middle digit from a 5 digit number n.
- Print the number of digits forming number n.
- Compute the sum of the digits forming number n.
- You read numbers until meeting 0. Find the first even and last odd nu…
- Print the first n numbers different from 0.
- Find the intersection point in the graphs of 2 given functions.
- Write a program to compute the arithmetic mean of 2 numbers a and b.
- Find the medium weight and height for the n students from a classroom…
- You read numbers until meeting 0. Find the minimum and maximum in the…
- Print all natural divisors of number n.
- You read a natural number n and a digit k. Decide if the digit k appe…
- Print the reverse of natural number n.
- Write a program to interchange the values of 2 variables a and b
- Write a program to find out if a number is a palindrome or not.
- Write a program to find if a number n is a perfect number or not.
- Print all the perfect squares smaller or equal to n.
- Find the sum of all the prefixes of natural number n.
- Print the count of the prime numbers found in positive interval [a, b].
- Print all the prime numbers found in positive interval [a, b].
- Write a program to check the given number is a prime number.
- Write a program to print of the first n prime numbers.
- Print the product of the first n numbers.
- Find out if all the numbers read until meeting 0 have the same sign o…
- Solve the second degree equation: ax^2+bx+c.
- Simplify a fraction a/b, where a and b are different from 0.
- Find the sum of all the suffixes of natural number n.
- Find the sum of the second powers of the first n digits.
- Find the sum of the third powers of the first n digits.
- Print the sum of the first n numbers.
- Write a program to find the maximum number in a given array.
- Write a program to convert binary format to decimal number.
- Write a program to sort an array using Bubble Sort.
- Write a program to identify common elements or numbers between two given arrays.
- Find out duplicate number between 1 to N numbers.
- Write a program to find out duplicate or repeated characters in a string.
- Write a program for Insertion Sort.
- Write a program to check if a given number is binary or not.
- Write a program to reverse a number.
- Write a sample code to reverse Singly Linked List by iterating through it only once.
- Write a program to find sum of each digit in the given number.
- Write a program to find if a given number is an Armstrong number.
- Write a program to implement your own ArrayList class.
- Write a program to print fibonacci series.
- Given a string, find the longest substrings without repeating characters.
- You are given an array of numbers. Find out the array index or position where sum of numbers preceeding the index is equals to sum of numbers succeeding the index.
- Implement a Set using only primitives.
- Write a singleton class.
- Write a program to print all permutations of a given string.
- Write a program to reverse a string using recursive methods.
- Write a program to find the sum of the first x prime numbers.