multiple of 9 without useing +,* oprator

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a #include preprocessor?

625


What are the 5 data types?

607


Why string is used in c?

586


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

615


What is the code for 3 questions and answer check in VisualBasic.Net?

1696






Can you return null in c?

603


What is c definition?

754


What is structure in c definition?

579


What is meant by type specifiers?

663


What is array of structure in c?

605


How we can insert comments in a c program?

636


What is #include in c?

604


what is the significance of static storage class specifier?

1667


Write a code to determine the total number of stops an elevator would take to serve N number of people.

735


What is the meaning of ?

628