Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

例题5-6 矩阵输出

📝 Solutions 🔵 仅限 C++
Problems Description
<p> 输出以下4*5的矩阵 </p> <p> &nbsp; 1&nbsp; 2&nbsp; 3&nbsp; 4&nbsp; 5 </p> <p> &nbsp; 2&nbsp; 4&nbsp; 6&nbsp; 8 10 </p> <p> &nbsp; 3&nbsp; 6&nbsp; 9&nbsp;12 15 </p> <p> &nbsp; 4&nbsp; 8 12 16 20 </p> <p> 要求使用循环实现,注意每行输出5items数字,每items数字占3items字符的宽度,右对齐。 </p> <p> &nbsp; </p>
Input格式
无
Output格式
每行输出5items数字,每items数字占3items字符的宽度,右对齐。 <p> &nbsp; </p>
Sample
Sample Input 1
无
Sample Output 1
1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20
Submit Code
请先Login后Submit

🤖 AI 解题助手

OpenRouter
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token