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
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is include directive in c?
What is the difference between pure virtual function and virtual function?
What are the advantages and disadvantages of a heap?
What is build process in c?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Differentiate between the expression “++a” and “a++”?
What are the parts of c program?
What is a pointer variable in c language?
How many levels of indirection in pointers can you have in a single declaration?
What is pass by value in c?
In which header file is the null macro defined?
What does #pragma once mean?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is the size of enum in bytes?