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 a void * in c?
Do you know what are bitwise shift operators in c programming?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Why does notstrcat(string, "!");Work?
What is pointer and structure in c?
Explain pointer. What are function pointers in C?
write a program to create a sparse matrix using dynamic memory allocation.
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Write a program to generate random numbers in c?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is %s and %d in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is the process of writing the null pointer?
What language is lisp written in?
What is null pointer constant?