Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
int main() { int counter[50],c=0,i,j,temp; long long int N,q; scanf("%lld",&N); q=abs(N); while(q!=0) { counter[c]=q%10; q/=10; c++; } for(i=0;i
0;j--) { if(counter[j]
=0) { printf("Maximum = "); for(i=c-1;i>=0;i--) { printf("%d",counter[i]); } j=0; while(counter[j]==0) { j++; } temp=counter[j]; counter[j]=counter[0]; counter[0]=temp; printf("\nMinimum = "); for(i=0;i
=0;i--) { printf("%d",counter[i]); } } printf("\n"); return 0; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)