×
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
Left Shift and Right Shift Operators in C
Mention the four important part of looping.
Write a program to calculate the following series:
What site is the best video tutorial website for learning C programming?
Программы и игры для Андроид телефона
The best CBD for Life
What is the difference between return 0 and return 1?
What are preprocessor directives in c language?
Ищу достойного мужчину!
What does it mean to be C ? Why its called C programming?
Ask a Question
Practice Mock Test
c programming
Take Mock Test
×
Close
Ask / Start a new topic
title
forum