C语言
```c
include
int main() {
int rows, cols, i, j, k, l;
printf("请输入行数: ");
scanf("%d", &rows);
printf("请输入列数: ");
scanf("%d", &cols);
for (i = 0; i < rows; i++) {
for (k = 0; k < rows - i - 1; k++) {
printf(" ");
}
for (l = 0; l < cols; l++) {
printf("*");
}
printf("\n");
}
return 0;
}
```
Java
```java
import java.util.Scanner;
public class Parallelogram {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入行数: ");
int rows = sc.nextInt();
System.out.println("请输入列数: ");
int cols = sc.nextInt();
for (int i = 0; i < rows; i++) {
for (int k = 0; k < rows - i - 1; k++) {
System.out.print(" ");
}
for (int l = 0; l < cols; l++) {
System.out.print("*");
}
System.out.println();
}
}
}
```
Python
```python
def print_parallelogram(rows, cols):
for i in range(rows):
for k in range(rows - i - 1):
print(" ", end="")
for l in range(cols):
print("*", end="")
print()
rows = int(input("请输入行数: "))
cols = int(input("请输入列数: "))
print_parallelogram(rows, cols)
```
这些代码示例分别使用C语言、Java和Python编写,可以根据需要选择合适的编程语言来实现平行四边形的打印。