Skip to main content

Posts

Baby doge paws

Baby doge paws link 🎉 Join the BabyDoge PAWS Clicker adventure! Solve challenges, join daily events, and invite friends. Stay tuned for the token airdrop! 🐾 🌟 Earn 10k PAWS as a welcome bonus 🌟 Get 25k PAWS with Telegram Premium https://t.me/BabyDogePAWS_Bot?start=r_6394860582

unix commands

 

Add two number in javascript html dhtml

 <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <input type="text" id="a"> <br> <input type="text" id="b"> <br> <button onClick=fun() > Result</button> <br> <script type="text/javascript"> function fun() { var a1 =document.getElementById("a").value; var b1 =document.getElementById("b").value; alert(+a1 + +b1); } </script> </body> </html> Result

Write a function int power (int x, int n) to return x^n without using pow function

#include <stdio.h> #include <math.h> void main() {       int z =(power(3,7));     printf("%d",z); } int power(int x,int n) {     int y=x;     if(n==0)     return 1;     else if (n==1)     return x;     else if(n>1)     {         while(n>1)                  {             x=x*y;             n--;         }     }        return x ; } OUTPUT : 2187

Write a program in Java to input in numbers and find out the smallest and the largest number also display the average number

import java.io.*; import java.lang.*; import java.util.Scanner; public class Main {   static  int[]args;   public static void main (String[]arg)     {     Main ob=new Main();             args=new int[10];       int avg=0;       Scanner sc =new Scanner(System.in);  for (int i = 0; i < 10; i++)       {   args[i]= sc.nextInt();       avg+=args[i];                 }           ob.calculate();             System.out.println("Average ="+ avg/10);     }   void calculate()   {       int tmp=0,i;           for ( i = 0; i < 10; i++)       {                         for(int j=0;j<args.length-1;...

Java program to take 10 cities name in an array and display which starts with consonant

import java.io.*; import java.lang.*; public class Main {   public static void main (String[]args)   {     for (int i = 0; i < args.length; i++)       {             switch (args[i].charAt (0))               {               case 'a':               case 'e':               case 'i':               case 'o':               case 'u':               case 'A':               case 'E':               case 'I':               case 'O':               case 'U':                break; ...

JSE coin

Cryptocurrencies are subject to risk.Invest at your own risk. Jse coin  Java script embedded coin One of the automatic minning currencies. You can join it . https://platform.jsecoin.com/?lander=2&utm_source=referral&utm_campaign=aff53832&utm_content=

Freelancer 20 million lives changing video

Hi all We are glad to inform you that we are now offering BCA , MCA , B.Tech, M.Tech final year projects at a very reasonable prices on each type and on every technology including PHP, asp.NET, C#, android. if you need any  don't hesitate to mail us................. you can also contact us on these given mails... manojshukla1466@gmail.com vina23y@gmail.ocm arjunshukla1466@gmail.com brightfuture1466@gmail.com

Solved String Manipulation unix linux shell bash script

#string while true do echo "Enter a choice" echo "1) Compare two strings" echo "2) concatenate two strings" echo "3) length of string" echo "4) Count occurence of string and word from a file" echo "5) reverse a string" echo "6) Put a string words  in an array" read n case $n in 1) echo "enter 2 strings " read s read s2 if [ $s = $s2 ] then echo "Strings are equal" else         echo "Strings are not equal"     if [ $s \< $s2 ]     then     echo "String $s comes first"     else     echo "String $s2 comes first"     fi fi ;; 2) echo "enter 2 strings " read s read s2 s3="$s $s2" echo $s3 ;; 3)echo "enter a string" read s s3=` expr length $s ` echo "Length is $s3"  ;; 4) echo "enter a string" read s echo "enter a word to search in string" read search_word s2=` echo $s | grep -o $search_word | wc -l ` echo ...

shell - bash - script - extract words from a string and put it in an array

echo "Enter a string " read s declare -a arr l=` echo $s| wc -c ` s="$s " i=1 j=0 s3="" S2=""     while [ $i -le $l ]     do     s2=`echo $s |cut -c $i `             if [ ! $s2 = " " ]         then         s3=$s3$s2         else         arr[j]=$s3         s3=""         j=` expr $j \+ 1 `         fi     i=` expr $i \+ 1 `     done echo "The words are:" len=${#arr[@]} u=0 while [ $u -lt $len ] do  echo "${arr[u]}" u=` expr $u \+ 1 ` done