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 / karna

void main()
{
int n;
printf("%d",scanf("%d",n));
getch();
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3877


Are pointers really faster than arrays?

992


Can one function call another?

1069


What is use of null pointer in c?

982


Write a program to print ASCII code for a given digit.

1059


What is the difference between text and binary i/o?

1018


Explain what is a static function?

1077


what is the significance of static storage class specifier?

2204


What's a good way to check for "close enough" floating-point equality?

1116


What is the use of sizeof?

989


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3215


Explain how can you tell whether two strings are the same?

994


What is a macro in c preprocessor?

1072


Is c still relevant?

1051


Write a code of a general series where the next element is the sum of last k terms.

1012