This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
struct emp | |
{ | |
int empno ; | |
char name[10] ; | |
int bpay, allow, ded, npay ; | |
} e[10] ; | |
void main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main () | |
{ | |
int a, b, c; | |
printf("Enter two numbers to add\n"); | |
scanf("%d%d",&a,&b); | |
c = a + b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
int main(){ | |
int answer = 1; | |
int choice; | |
while (answer == 1){ | |
printf("\n\n*****CHOOSE YOUR CHOICE*****\n"); |