Python Program for Number of jump required of given length to reach a point of form (d, 0) from origin in 2D plane In this detailed blog post, we will explore a Python program designed to calculate the minimum number of jumps required to reach a specific point (d, 0) from the origin…
Read more
Python Program for Find the perimeter of a cylinder Given diameter and height, find the perimeter of a cylinder. Perimeter is the length of the outline of a two – dimensional shape. A cylinder is a three – dimensional shape. So, technically we cannot find the perimeter of a cylinder but we can find the…
Read more
Python Program for Print Number series without using any loop Problem – Givens Two number N and K, our task is to subtract a number K from N until number(N) is greater than zero, once the N becomes negative or zero then we start adding K until that number become the original number(N). Note :…
Read more
Python Program for Program to Print Matrix in Z form Given a square matrix of order n*n, we need to print elements of the matrix in Z form Examples: Input : mat[][] = {1, 2, 3, 4, 5, 6, 7, 8, 9} Output : 1 2 3 5 7 8 9 Input : mat[][] =…
Read more