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...

Write a C++ program without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;

Answer Posted / solairaja

void main()
{
int i;
V:
printf("%d",i++);
goto V;
}

Is This Answer Correct ?    3 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I manipulate individual bits?

1003


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2312


What are global variables and how do you declare them?

1033


Difference between MAC vs. IP Addressing

1111


What are the advantages of Macro over function?

1956


What is actual argument?

1018


write a c program in such a way that if we enter the today date the output should be next day's date.

2157


Write a C program in Fibonacci series.

1058


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1937


How do we open a binary file in Read/Write mode in C?

1207


What is a method in c?

1082


Explain the difference between malloc() and calloc() in c?

1018


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2610


Why is c still so popular?

1018


Write a program of prime number using recursion.

1048