while(n>0)
{
cout<<n%10<<" ";
n=n/10;
}
// for loop
for(;n>0 ;)
{
}
Code Example |
---|
Cpp :: how to get an element in a list c++ |
Cpp :: C++ string initialization |
Cpp :: c++ multidimensional vector |
Cpp :: c++ vector pop_back |
Cpp :: how to make a typing effect c++ |
Cpp :: include cpp |
Cpp :: how to scan array in c++ |
Cpp :: convert string to lpstr |
Cpp :: c++ get ascii value of char |
Cpp :: string to char* |
Cpp :: count bits c++ |
Cpp :: min element in stl c++ |
Cpp :: divide and conquer based algorithm to find maximum and minimum of an array |
Cpp :: size of stack in c++ |
Cpp :: tolower funciton in cpp |
Cpp :: pointer address to string |
Cpp :: create copy constructor c++ |
Cpp :: cpp get last element of vector |
Cpp :: c++ cast to type of variable |
Cpp :: sizeof operator in c++ |
Cpp :: c++ create thread |
Cpp :: how to get the time in c++ as string |
Cpp :: cpp mutex |
Cpp :: odd numbers 1 to 100 |
Cpp :: notepad++ |
Cpp :: c++ base constructor |
Cpp :: how to download c++ portable compiler |
Cpp :: c++ multiple inheritance |
Cpp :: c++ range based for loop |
Cpp :: c++ client service ros |