Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is c language still used?

945


Is return a keyword in c?

1039


Why should I use standard library functions instead of writing my own?

1221


When the macros gets expanded?

1353


Why doesnt the call scanf work?

1146


What is a memory leak? How to avoid it?

1273


What is the purpose of main( ) in c language?

1103


What is the meaning of && in c?

971


What are the primitive data types in c?

1019


Write a Program to accept different goods with the number, price and date of purchase and display them

6163


What is the benefit of using an enum rather than a #define constant?

1190


What is oops c?

1138


What extern c means?

943


Explain c preprocessor?

1060


How do I create a directory? How do I remove a directory (and its contents)?

1112