×
Information!
Sign In
to continue to Youth4work
UserName, Email or phone
Enter your password
Remember me
Register
|
Forgot password
Login
Practice Tests
yTests - Skill Tests
Prep Tests
Psychometric Test
Typing Test
For Job Seekers
Search Jobs
Post Resume
yTests - Skill Tests
Prep Tests
Follow Employers
Job Insights
Certification Courses
For Employers
Post Jobs - Free
Contact Pre-Assessed Profiles
Campus Hiring
Managed Recruitment
Assessment Solutions
Subscription Plans
Sign In
Register
Free !!
Practice Tests
yTests - Skill Tests
Prep Tests
Psychometric Test
Typing Test
For Job Seekers
Search Jobs
Post Resume
yTests - Skill Tests
Prep Tests
Follow Employers
Job Insights
Certification Courses
For Employers
Post Jobs - Free
Contact Pre-Assessed Profiles
Campus Hiring
Managed Recruitment
Assessment Solutions
Subscription Plans
Sign In
Register
Free !!
×
Information!
Online Prep Test
C Programming
Forum
How will you print numbers from 1 to 100 without using loop?
How will you print numbers from 1 to 100 without using loop?
We cannot use any loop, for, do while, while. Print without the use of loop?
Aditi
13 Jun
3 Answers
answer
Answer
×
3 Answers
Sort by
Recent Answer
Top Voted
Recent Answer
1
-
3
of
3
3 Answers
Sort by
Recent Answer
Top Voted
Recent Answer
KL
Kane
13 Jun
the print_numbers function calls itself with n - 1 until n reaches 0. When n is greater than 0, it prints the
geometry dash lite
after the recursive call, which ensures the numbers are printed in ascending order from 1 to 100.
0
Comment
0
View all vote's
Modal content
×
All-Votes
No Vote
No Up Vote
No Down Vote
×
PB
Prafull
14 Aug
Use recursion... void printno(int n) { if(n>0) printno(n-1); printf("%d",n); }
0
Comment
1
View all vote's
Modal content
×
All-Votes
vinitha
vinitha
No Down Vote
×
AS
A
19 Jul
simply you have to type the no by givings an array with capasity of more than 100 places which can stores the data .
0
Comment
-2
View all vote's
Modal content
×
All-Votes
demo
prafull
No Up Vote
demo
prafull
×
Other Related Discussions
The best CBD for Life
How to dynamically allocate a 2D array in C?
What is the difference between C and C++?
Who invented C C++ and Java? Explain your answer
Should I learn C before C++? Explain your answer
Left Shift and Right Shift Operators in C
What are preprocessor directives in c language?
Психологическая помощь при похудении
TELL ME THE TIPS AND TRICKS of c prog
What is C used for? Explain your answer
Ask a Question
Practice Mock Test
c programming
Take Mock Test
×
Close
Ask / Start a new topic
title
forum