Write A Program That Will Inputs The Five Digit Number, Separate The Number Into Its Individual Digits and Print The Digits Separated From One Another
Write A Program That Will Inputs The Five Digit Number, Separate The Number Into Its Individual Digits and Print The Digits Separated From One Another
number into its individual digits and print the digits separated from one
another by three spaces each(Hint: Use the integer division and
modulus operators)
============================================
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
long int no,first,second,third,fourth,fifth;
first=no/10000;
no=no%10000;
second=no/1000;
no=no%1000;
third=no/100;
no=no%100;
fourth=no/10;
no=no%10;
fifth=no;
cout<<"\n==================================
============================================
="<<"\n\n\n";
cout<<"====================================
============================================"
;
getch();
}
http://www.ravianeducation.blogspot.com
FARHAN: 03008855006