Skip to content

Instantly share code, notes, and snippets.

View ShahStavan's full-sized avatar
🏄
Working from home

Mr.Shah ShahStavan

🏄
Working from home
View GitHub Profile
#include<iostream>
using namespace std;
void numtochar(int n){
int mod = n%10;
string single[] = {"Zero" , "One" , "Two" , "Three" , "Four" , "Five" , "Six" , "Seven" , "Eight" , "Nine" , "Ten"};
string double_val1[] = {"Eleven" , "Twelve" , "Thirteen" , "Fourteen" , "Fifteen" , "Sixteen" , "Seventeen" , "Eighteen" , "Nineteen"};
string double_val[] = {"Ten" , "Twenty" , "Thirty" , "Fourty" , "Fifty" , "Sixty" , "Seventy" , "Eighty" , "Ninety"};
if(n<=10){
cout<<single[n];
@ShahStavan
ShahStavan / Logic.txt
Last active May 19, 2023 06:54
Program to find second maximum of n numbers without using arrays in Java
Let's see Logic behind the code🤘
We have declared four variables ..
curr = Current element
first = Will be largest number
second = Will be second max number
i = So that we can break the while loop
while(i==1)
-> It checks whether i is 1 or not.
@ShahStavan
ShahStavan / GeoLocation.html
Created August 7, 2021 16:26
Know Your Geolocation using a Navigator.Geolocation script
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Know Your Geolocation</title>
</head>
<body>
<h1>Geolocation</h1>
@ShahStavan
ShahStavan / StockPricePrediction.py
Created August 11, 2021 16:12
Predicting Stock Price with help of Machine Learning in Python
# First install libraries of Python
# ---Libraries--- : numpy , matplotlib , pandas , pandas_datareader , tensorflow , scikit-learn
# Import files in our Code
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from pandas.core.algorithms import mode
import pandas_datareader as web
import datetime as dt