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 to print 1 2 3 ... 100 without using
loops?

Answer Posted / vikash kumar dixit

#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
A:
printf("%d",i);
i++;
switch(n)
{
case 100:
break();
default:goto A;
}
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I direct output to the printer?

1324


What is merge sort in c?

1052


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1538


Can a pointer be static?

1091


What are identifiers in c?

1205


What is the scope of local variable in c?

1138


How can I dynamically allocate arrays?

1107


Which node is more powerful and can handle local information processing or graphics processing?

1327


What are the data types present in c?

1168


What is a pointer and how it is initialized?

1165


What are identifiers c?

1099


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2447


Why we use break in c?

1021


The __________ attribute is used to announce variables based on definitions of columns in a table?

1215


Explain what math functions are available for integers? For floating point?

1118