Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / mwolo fabrice
#include<stdio.h>
#include<conio.h>
void main()
{
int n=100,i;
scanf("%d",&i);
if(i<n)
{
printf("\n %d\n",i);
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is exit() function?
write a program to find the given number is prime or not
How can you tell whether two strings are the same?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Why do we need a structure?
Explain how can you determine the size of an allocated portion of memory?
How do you use a pointer to a function?
What are extern variables in c?
What is typedf?
Write a program to find the biggest number of three numbers in c?
Is Exception handling possible in c language?
What does %p mean c?
code for replace tabs with equivalent number of blanks
What is sizeof in c?
What is c language and why we use it?