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

Write an algorithm for a program that receives an integer as
input and outputs
the product of of its digits. E.g. 1234 = 24, 705 = 0

Answer Posted / krishna

#include<stdio.h>
#include<conio.h>
void main()
{
int n,n1.p=1;clrscr()printf("\n enter num");scanf("%d",&n);
while(n>0){ n1=n%10;p=p*n1;n=n/10;}printf("\n required answer is %d",p);
getch();
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is queue in c?

1086


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

2148


What is nested structure?

1029


What is hashing in c language?

1286


List a few unconditional control statement in c.

972


What should malloc() do?

1152


Why dont c comments nest?

1034


Does c have function or method?

983


What are structures and unions? State differencves between them.

1159


Write a C program to count the number of email on text

1901


What is the difference between arrays and pointers?

1113


i got 75% in all semester am i eligible for your company

2208


What are pragmas and what are they good for?

978


what type of questions arrive in interview over c programming?

2017


What is #include called?

1037