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 / mwolo fabrice

#include<stdio.h>
#include<conio.h>
void main()
{
int n=100,i;
scanf("%d",&i);
if(i<n)
{
printf("\n %d\n",i);
}
getch();
}

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is define c?

1001


Differentiate between the = symbol and == symbol?

1208


Why main is not a keyword in c?

1175


Why is c known as a mother language?

1187


How pointers are declared?

907


a c code by using memory allocation for add ,multiply of sprase matrixes

2744


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2136


What is the function of volatile in c language?

1070


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2774


What is a void pointer in c?

1040


What is c programming structure?

1111


formula to convert 2500mmh2o into m3/hr

941


What are identifiers and keywords in c?

1033


can anyone suggest some site name..where i can get some good data structure puzzles???

2018


How is a null pointer different from a dangling pointer?

974