Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / lakshmipraba
#include<stdio.h>
int i;
void main()
{
if(i<=100)
{
printf("%d ",i);
i++;
main();
}
if(i>100)
exit(0);
}
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What are derived data types in c?
How are 16- and 32-bit numbers stored?
What is action and transformation in spark?
What is the role of && operator in a program code?
Explain the difference between malloc() and calloc() in c?
What is static volatile in c?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
how to write a c program to print list of fruits in alpabetical order?
What does the file stdio.h contain?
what is event driven software and what is procedural driven software?
Which is the best website to learn c programming?
Why is structure important for a child?
string reverse using recursion