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
What is #include stdio h?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is a header file?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Is main is a keyword in c?
What is switch in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is a structural principle?
Write a code to generate a series where the next element is the sum of last k terms.
Why c is called top down?
What is double pointer in c?
How is null defined in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above