Rumah  >  Artikel  >  pembangunan bahagian belakang  >  Tulis program dalam bahasa C untuk mencetak corak berlian pepejal dan berongga

Tulis program dalam bahasa C untuk mencetak corak berlian pepejal dan berongga

WBOY
WBOYke hadapan
2023-08-29 09:33:14990semak imbas

Penerangan Program mple

Terjemahan bahasa Cina ialah:

Contoh

Accept the Number of Rows for Hollow Rhombus from the User
Create a Hollow Rhombus containing the same number of Rows specified by the User.
Print the first row containing the number of stars same as the number of rows.
Print the second row containing the first and last star as show in the output and leave the spaces between first and the last star.
Do the same till you reach the last Row.
Print the last row containing the number of stars same as the number of rows.

output

Tulis program dalam bahasa C untuk mencetak corak berlian pepejal dan berongga

Atas ialah kandungan terperinci Tulis program dalam bahasa C untuk mencetak corak berlian pepejal dan berongga. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!

Kenyataan:
Artikel ini dikembalikan pada:tutorialspoint.com. Jika ada pelanggaran, sila hubungi admin@php.cn Padam