Skip to content

Instantly share code, notes, and snippets.

View VishalVishwakarma's full-sized avatar
💼
Building Businesses

Vishal Vishwakarma VishalVishwakarma

💼
Building Businesses
View GitHub Profile
@VishalVishwakarma
VishalVishwakarma / index.html
Last active January 22, 2022 06:39
Global variables in Javascript across multiple files
<!DOCTYPE html>
<html>
<body>
<h1>Example of JS Global Variable</h1>
<p>Using variable from one JS file to another.</p>
<p>Open the console to view the output.</p>
<p id="demo">
<script type="text/javascript">
@VishalVishwakarma
VishalVishwakarma / salary-payroll.c
Created March 2, 2017 07:36
Simple employee salary payroll program in C using structure
#include<stdio.h>
#include<conio.h>
struct emp
{
int empno ;
char name[10] ;
int bpay, allow, ded, npay ;
} e[10] ;
void main()
{
@VishalVishwakarma
VishalVishwakarma / addition.c
Created March 2, 2017 07:34
Basic command line input addition program in C
#include<stdio.h>
int main ()
{
int a, b, c;
printf("Enter two numbers to add\n");
scanf("%d%d",&a,&b);
c = a + b;
@VishalVishwakarma
VishalVishwakarma / while-switch-loop.c
Created March 2, 2017 07:32
While-Switch function continuous loop demo in C language
#include <stdio.h>
#include <conio.h>
int main(){
int answer = 1;
int choice;
while (answer == 1){
printf("\n\n*****CHOOSE YOUR CHOICE*****\n");