My find-biggest-number Recursive function returns a discremented value

I have a problem in this recursive function that basically takes two numbers and returns the biggest one of them without using comparison (> || < ) operators, thing is, it returns dicremented values even though I held the starting values in a variable. Here’s my code: #include <stdio.h> int WhoBig(int A, int B) {… Read More My find-biggest-number Recursive function returns a discremented value

How to Get only numeric value in text file using powershell?

I have a text file sample.txt containing computer computer.pc = 1 pc i want only number 1, where i want to assign that value to a variable $number = Get -content "sample.txt" >Solution : You can extract the number by using the Regex Match method. Example code to do this: $number = ([regex]::Match((Get-content "sample.txt"), "\d+")).Value… Read More How to Get only numeric value in text file using powershell?