Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / harsha
#include<stdio.h>
int i=0;
void main()
{
if(i==0)
clrscr();
if(i<100) {
printf("%d \t",++i);
main(); }
else {
getch();
exit(0); }
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How can I send mail from within a c program?
How is a macro different from a function?
Write the syntax and purpose of a switch statement in C.
Here is a neat trick for checking whether two strings are equal
What is data structure in c programming?
What is the difference between procedural and functional programming?
which is an algorithm for sorting in a growing Lexicographic order
What is the scope of global variable in c?
Explain what is the most efficient way to store flag values?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is define c?
How can I pad a string to a known length?
What is hashing in c?
How would you obtain the current time and difference between two times?
How do I swap bytes?