Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / vivek
#include<stdio>
void main()
{
int i=1;
if(i<=100)
printf("%d",i);
i++;
continue;
getch;
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
#include
Write program to remove duplicate in an array?
What do you mean by dynamic memory allocation in c? What functions are used?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is getch () for?
What are examples of structures?
What are header files in c programming?
What are different types of operators?
Can you please explain the difference between malloc() and calloc() function?
What is a #include preprocessor?
What are variables c?
string reverse using recursion
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is use of pointer?