Posts

Showing posts from July, 2019

How To Create a Login Form ( HTML )

How To Create a Login Form Step 1) Add HTML: Add an image inside a container and add inputs (with a matching label) for each field. Wrap a <form> element around them to process the input. You can learn more about how to process input <form action="action_page.php">   <div class="imgcontainer">     <img src="img_avatar2.png"alt="Avatar" class="avatar">   </div>   <div class="container">     <label for="uname"><b>Username</b></label>     <input type="text"placeholder="Enter Username"name="uname" required>     <label for="psw"><b>Password</b></label>     <input type="password"placeholder="Enter Password"name="psw" required>     <buttontype="submit">Login</button>     <label>       <input type="checkbox"checked="

Sudo - SuperUser Access TERMUX

Sudo works on only rooted devices   sudo means superuser & root command we can run root tools in termux using sudo Execute these commands one by one to install sudo. Installation : $ apt update  $ apt upgrade $ apt install git $ apt install tsu $ apt install ncurses-utils $ git clone https://github.com/termux-sudo $ cd termux-sud $ cat sudo > /data/data/com.termux/files/usr/bin/sudo $ chmod 700 /data/data/com.termux/files/usr/bin/sudo sudo su sudo tsu Now you are a root user..

Reverse String according to the number of words

Given a string containing a number of words. If the count of words in string is even then reverse its even position’s words else reverse its odd position, push reversed words at the starting of a new string and append the remaining words as it is in order. Examples: Input: Ashish Yadav Abhishek Rajput Sunil Pundir Output: ridnuP tupjaR vadaY Ashish Abhishek Sunil Input: Ashish Yadav Abhishek Rajput Sunil Pundir Prem Output: merP linuS kehsihbA hsihsA Yadav Rajput Pundir Approach :  If number of words are even then even position’s words come first and also reverse that particular word, and if number of words are odd then odd position’s words come first and also reverse that particular word, after then the remaining words are appended in order. For e.g. Ashish Yadav Abhishek Rajput Sunil Pundir. In the above string, the number of words is even then “Yadav Rajput Pundir” comes at the even position and then the final output will be: ridnuP tupjaR vadaY Ashish Abhishek Sunil // C progr