Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make the periphery of a rectangle the same number in C language

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to make the periphery of a rectangle in c language for the same number, the article is very detailed, has a certain reference value, interested friends must read it!

The periphery of a rectangle is the same number, and one circle is added first, and the first circle is 1.

Example

11111

12221

12321

12221

11111

# include

# define N 7

Void fun (int (* a) [N])

{int i,j,k,m

If (N% 2cm / 0) m=N/2

Else m=N/2+1

For (iTuno; I

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 206

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report