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 / nishikant kamble

#include<stdio.h>
int main()
{
int i=1;
suhas:
printf("%d\t",i);
i++;
if(i==101)
{
exit(1);
}
goto suhas;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is this program statement valid? INT = 10.50;

1162


what are bit fields? What is the use of bit fields in a structure declaration?

2137


How can I list all of the predefined identifiers?

986


What is difference between function overloading and operator overloading?

1094


Hai what is the different types of versions and their differences

1944


Can two or more operators such as and be combined in a single line of program code?

1375


find the sum of two matrices and WAP for it.

1144


What is use of integral promotions in c?

1152


What is #line in c?

1019


Can we increase size of array in c?

971


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1282


How many bytes is a struct in c?

1173


What are conditional operators in C?

1104


#include { printf("Hello"); } how compile time affects when we add additional header file .

1898


What are the 5 types of organizational structures?

1084