×
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
Write a program to read the marks of 50 students in a class and display the following:
Write a program to calculate the following series:
Программы и игры для Андроид телефона
Trade crypto anytime
What is difference between C C++ and Java?
Difference between ++*p, *p++ and *++p
What is structured programming?
What is the eligibility criteria for cracking the C Progamming Exam 2018?
C programming Program to print the Fibonacci series up to n numbers.
Can someone explain the concept of pre and post increment in C?
Ask a Question
Practice Mock Test
c programming
Take Mock Test
×
Close
Ask / Start a new topic
title
forum