Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / professor uday kumar bhupathi
void main(int n)
{
if(n==0)
return;
main(--n);
printf("%d ",n);
getch();
}
| Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
What is the best way of making my program efficient?
What is bubble sort in c?
Which built-in library function can be used to match a patter from the string?
Can we declare a function inside a function in c?
Write a program to reverse a given number in c language?
What are the different types of pointers used in c language?
What is a lvalue
What is string length in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Tell me what are bitwise shift operators?
How can I read and write comma-delimited text?
#include
What are the applications of c language?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Can a pointer be static?