Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

find largest digit in a number

int n, r, l = 0; //n=num, r= reminder , l= largest.
// this is the logic code only.
while (n>0)
{
r = n % 10;
if(l<r) {
l = r;
}
n = n / 10;
}
Comment

PREVIOUS NEXT
Code Example
Shell :: apt install youtube-dl 
Shell :: how to fetch all git branches 
Shell :: bash get line from file 
Shell :: linux quick format usb drive 
Shell :: re-entering top level after c stack overflow 
Shell :: advanced installer product key 
Shell :: copiar arichvos linux ssh 
Shell :: how to uninstall cpuonly from pytorch 
Shell :: TestStand enter non ascii 
Shell :: determine if command exists 
Shell :: install homebrew in mac 12 
Shell :: how to create a repository 
Shell :: Bash script to check permission and store it 
Shell :: install concrete 5 on ec2 instance 
Shell :: grep third match 
Shell :: install magento extension composer 
Shell :: start confluence service ubuntu 
Shell :: ettercap terminal 
Shell :: git add everything except 
Shell :: grafana for linux download ubuntu 
Shell :: tcr test commit revert 
Shell :: regex first in line 
Shell :: install scrcpy in ubuntu 
Shell :: curl time response 
Shell :: start bungeecord server 
Shell :: montar pasta compartilhada virtualbox 
Shell :: install kismet 
Shell :: cat stands for in linux 
Shell :: set sublime text as git editor mac 
Shell :: ansible ping ad hoc 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =