Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program to print a parallelogram pattern with * characters. The size N represents the length (the number of * characters in each line)& breadth ( the number of lines) of the parallelogram.
The slope of the parallelogram T represents the number of extra spaces a line should have in the beginning compared to its next line. The last line of the pattern does not have any spaces in the beginning.

Explanation:
Given N=3 and T=2
Each line should have 3 star(*) characters.
The last line should have 0 spaces at the beginning.
Each line has 2 extra spaces characters when compared to its next line.

Input: 2 2
Output: **
**
Input: 3 2
Output: ***
***
***
You are given an integer N. Print N rows starting from 1 in the triangle order as shown in the explanation.
Explanation:
Given N=5.
The triangle order for the given N is
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
Given an integer n , write a program to print the closest number that has all the even digits.condifer the lowest number if there is same difference between forward and backward numbers.
Input:17
Output:20
Input :-33
Output:-28
odd one out given some space-separated list of integers, every element appears twice other than one element . write a program to find the element which appeared only once. answer

Given a string in camel case, write a python program to convert the given string from camel case to snake case.


Write a Python program to reverse the order of the items in the array Sample Output: Original array: array('i', [1, 3, -13, 13,2]) reverse array:
Write a Python program to reverse the order of the items in the array Sample Output: Original array: array('i', [1, 3, -13, 13,2]) reverse array:

Given

N = 4, there should be 2 triangular patterns with 4 lines each. So, the output should be

*

* *

* * *

* * * *

*

* *

* * *

* * * *


how can i print double patterns


In the given example,

D = Monday. As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will be Sundays (A week has 7 days). So the 16th day (N = 16) of the month will be a Tuesday.

determine day of the week of the given date and month


an * charcter in 4 times so how do i print print same in another time



LATEST TUTORIALS
APPROVED BY CLIENTS