×
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
prafull
No Up Vote
prafull
×
Other Related Discussions
Психологическая помощь при похудении
What does a person require to opt C programming as a career?
How will you print “Hello World” without semicolon?
Write a program to read the marks of 50 students in a class and display the following:
can u define type of pointer ??
What does it mean to be C ? Why its called C programming?
Left Shift and Right Shift Operators in C
What is C programing? Explain your answer
C programming Program to print the Fibonacci series up to n numbers.
What are preprocessor directives in c language?
Ask a Question
Practice Mock Test
c programming
Take Mock Test
×
Close
Ask / Start a new topic
title
forum