program in c to print 1 to 100 without using loop
Answer Posted / ashu
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a;
clrscr();
printf("there are 1 to 100");
a=0;
if(a<100)
{
a++;
printf("%d\n",a);
}
else if(a>100)
{
goto end;
}
end: getch();
}
| Is This Answer Correct ? | 5 Yes | 13 No |
Post New Answer View All Answers
What is this pointer in c plus plus?
what is bit rate & baud rate? plz give wave forms
What is switch in c?
What is c value paradox explain?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What does & mean in scanf?
What is difference between function overloading and operator overloading?
What is the use of extern in c?
If errno contains a nonzero number, is there an error?
What is output redirection?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
How can I invoke another program or command and trap its output?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Explain what does the format %10.2 mean when included in a printf statement?
Is it better to use malloc() or calloc()?