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

what does static variable mean?

0 Answers   TCS,


How many ways are there to swap two numbers without using temporary variable? Give the each logic.

9 Answers  


C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

6 Answers   TCS, Wipro,


Explain how can I right-justify a string?

0 Answers  


Compare and contrast compilers from interpreters.

0 Answers  


Differentiate between ordinary variable and pointer in c.

0 Answers  


What is integer constants?

0 Answers  


#include<stdio.h> void main() { char *str; long unsigned int add; str="Hello C"; add=&str[0]; printf("%c",add); } What is the output?

4 Answers   Infosys,


What is the OOPs concept?

3 Answers  


Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********

4 Answers  


write a programming in c language, 1 3 5 7 9 11

2 Answers   NIIT,


why do we use pointer instead directly acessing the data?

2 Answers  


Categories