在控制台屏幕中打印0到1000 ..

编程入门 行业动态 更新时间:2024-10-26 16:24:00
本文介绍了在控制台屏幕中打印0到1000 ..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们可以在turboc ++(3.0 dos版本)中编写交流代码,这将在控制台屏幕或输出屏幕上打印数字 因此从0到1000 提供我们只能使用以下系统定义函数.... 1)printf(); 2)exit(); 3 )延迟(); 4)clrscr(); 并且还提供了c程序不包含 任何循环语句(ie.for循环,while循环,dowhile循环),任何ternery操作符, 任何if else语句,任何switch case .......... 如果有人可以解决,请回答...............

can we write a c code in turboc++(3.0 dos version) which will print the numbers consequently from 0 to 1000 on the console screen or output screen provided that we can use only the following system define functions.... 1) printf(); 2)exit(); 3)delay(); 4)clrscr(); and it is also provided that the c program will not contain any loop statement(ie.for loop,while loop,dowhile loop),any ternery operator, any if else statement,any switch case.......... if someone can solve it then please answer...............

推荐答案

本网站的专家非常乐意帮助您解决问题,但他们无法为您完成任务/计划。首先尝试自己的作业/计划并发布有关您遇到的任何困难或有关您不知道如何实现的特定代码功能的问题。 请阅读发布指南,特别是课程作业发布指南。 然后当你准备好发布一个新的这个帖子中的问题。 MODERATOR The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don''t know how to achieve. Please read the Posting Guidelines and particularly the Coursework Posting Guidelines. Then when you are ready post a new question in this thread. MODERATOR

我们可以通过使用递归函数.print的变量值,递增它,递归传递给函数。 we can,by using recursive function.print the value of variale,increment it,pass to function recursively.

使用递归函数。

更多推荐

在控制台屏幕中打印0到1000 ..

本文发布于:2023-07-11 12:31:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1094071.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   屏幕

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!