multiple of 9 without useing +,* oprator

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How important is structure in life?

595


how many key words availabel in c a) 28 b) 31 c) 32

636


What are the standard predefined macros?

639


What is function definition in c?

591


How do you convert strings to numbers in C?

713






What is volatile, register definition in C

693


What is include directive in c?

650


Do you know what are the properties of union in c?

588


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1598


What is union in c?

642


What is the usage of the pointer in c?

608


What is a macro, and explain how do you use it?

631


Can a variable be both const and volatile?

678


What is n in c?

579


What is a dynamic array in c?

600