C++ Code Basic Programming
Friday, June 27, 2008
//last number multiply by 10 as 15 is 50, 23 is 30
#include
#include
void main()
{
clrscr();
int a,b,c,i=1,j=0;
cout<<"Enter a Num: ";
cin>>a;
c=a;
while(c>0)
{
c/=10;
j++;
}
c=0;
while(a>0)
{
b=a%10;
i=1;
while(i
{
b*=10;
i++;
}
j--;
c+=b;
a/=b;
}
cout<<"Maghloob: "<
getch();
}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2008
(4)
▼
June
(4)
//last number multiply by 10 as 15 is 50, 23 is 30...
//Sum of number as 45 means 9 #include #include vo...
#include #include int main() { clrscr(); float a,b...
Welcome To C++ World
About Me
Abhijit
View my complete profile
No comments:
Post a Comment