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


multiple of 9 without useing +,* oprator

Answers were Sorted based on User's Feedback



multiple of 9 without useing +,* oprator ..

Answer / guest

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{clrscr();
int a,i,r=0;
scanf("%d",&a);

for(i=a;i>0;i--)
r=r-9;
r=abs(r);
printf("%d",r);
getch();
}

Is This Answer Correct ?    4 Yes 2 No

multiple of 9 without useing +,* oprator ..

Answer / tknowledge05

The above guest is me .. okkkkk....
by the time i solved and executing i was logged out and when i posted the answer it considered guest............

Is This Answer Correct ?    2 Yes 0 No

multiple of 9 without useing +,* oprator ..

Answer / jeke kumar gochhayat

this program is for any no
#include<stdio.h>
void main()
{
int n,k,c,l,i;
printf("enter the no");
scanf("%d",&n);
printf("which no of multiple u want");
scanf("%d",&l);
k=n;c=n;
for(i=1;i<l;i++)
{
while((n--)>0)
k++;
n=c;
}
printf("the multiple=%d",k);
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a c program to build a heap method using Pointer to function and pointer to structure ?

0 Answers   Wipro,


What is pointers in c?

0 Answers  


Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)

1 Answers   NetApp, PTU, Wipro,


Explain About fork()?

0 Answers   TISL,


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

0 Answers   TCS,


write a C program to print the program itself ?!

16 Answers   TCS,


what is recursion in C

0 Answers   Cap Gemini,


What are dangling pointers in c?

0 Answers  


Why is malloc used?

1 Answers  


What is an expression?

0 Answers  


main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }

7 Answers   HCL,


How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


Categories