在控制台屏幕中打印0到1000 .. [英] printing 0 to 1000 in console screen..

查看:91
本文介绍了在控制台屏幕中打印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...............

推荐答案

本网站的专家非常乐意帮助您解决问题,但他们无法为您完成任务/计划。首先尝试自己的作业/计划并发布有关您遇到的任何困难或有关您不知道如何实现的特定代码功能的问题。


请阅读< a href =http://www.thescripts.com/forum/faq.php?faq=posting_guidelines\"target =_ blank>发布指南,特别是课程作业发布指南


然后当你准备好发布一个新的这个帖子中的问题。


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 ..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆