程序描述
算法
接受用户提供的任何需要形成乘法的数字
从 I 的值开始乘以给定数 (=1)
将给定数与 I 的值递增,直到 I 值小于或等于12.
示例
/* Program to print the multiplication table of a given number */#include int main() { int number, i; clrscr(); printf("Please enter any number to find multiplication table:"); scanf("%d", &number); printf("Multiplication table for the given number %d: ", number); printf(""); for(i=1;i
"); } getch(); return 0;}
登录后复制
输出
以上就是打印给定数字的乘法表在C中的详细内容,更多请关注【创想鸟】其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。
发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/2583450.html