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

get any number as input except 1 and the output will be
1.without using operators,expressions,array,structure.don't
print 1 in printf statement

Answer Posted / amarnathreddy

i am going to write only logic
n=1000
n1=n-(n-1)
1000-999=1

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 5 elements of structure?

1043


Can a program have two main functions?

1067


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1043


Explain what is the benefit of using const for declaring constants?

970


What do you mean by recursion in c?

1061


What is the use of structure padding in c?

1019


Can we declare a function inside a function in c?

991


Process by which one bit pattern in to another by bit wise operation is?

1104


Explain what is a 'locale'?

1022


What is the use of static variable in c?

1048


What are the application of void data type in c?

1141


What is the use of a semicolon (;) at the end of every program statement?

1417


What is the difference between variable declaration and variable definition in c?

1017


hi send me sample aptitude papers of cts?

2110


Explain why C language is procedural?

1168