This file contains hidden or 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
| /* | |
| There are 40 students in a class. Each student record contains student ID, Name, Marks of four class tests of a course. | |
| Write a program to print the ID, name and average marks of best three tests for each student | |
| */ | |
| #include<iostream> | |
| using namespace std; | |
| double findAverage(double *pmark); | |
| struct student{ |
This file contains hidden or 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<iostream> | |
| using namespace std; | |
| int main(){ | |
| int N=2; | |
| int parr[N]; | |
| int *arr01=NULL; | |
| int line; | |
| cin>>line; |
This file contains hidden or 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
| <html> | |
| <head> | |
| <script type="text/javascript" src="https://code.jquery.com/jquery-2.2.1.min.js"></script> | |
| <title></title> | |
| </head> | |
| <body> | |
| <button id="click">Click</button> |
This file contains hidden or 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
| var xmlhttp=new XMLHttpRequest(); | |
| var url="data.txt"; //name of the file to fetch data | |
| var dataArr=[]; | |
| xmlhttp.onreadystatechange=function(){ | |
| if(xmlhttp.readyState==4 && xmlhttp.status==200){ | |
| var myArr=JSON.parse(xmlhttp.responseText); | |
| dataArr=spitData(myArr); | |
| } | |
| }; |
This file contains hidden or 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
| .model small | |
| .stack 100h | |
| .data | |
| lower db 'Lower: $' | |
| upper db 'Upper: $' | |
| inval db 'INVALID INPUT $' | |
| .code | |
This file contains hidden or 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
| .model small | |
| .stack 100h | |
| .data | |
| letter db ? | |
| err db 'INVALID INPUT$' | |
| .code | |
| main proc |
This file contains hidden or 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
| <script src="https://code.jquery.com/jquery-2.2.1.min.js"></script> | |
| <input type="button" id="active" value="AJAX ME.."> | |
| <div id="info"> | |
| <!-- display ajax data here --> | |
| </div> | |
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| $("#active").click(function(){ |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>JS</title> | |
| </head> | |
| <body> | |
| <div id="box"> | |
| </div> | |
| <script type="text/javascript"> |
This file contains hidden or 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
| <style type="text/css"> | |
| #mainBox{ | |
| border-style: groove; | |
| margin-right: 46.5%; | |
| } | |
| </style> | |
| <body> | |
| <h3 id="head">Loading JS... </h3> |
This file contains hidden or 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
| var colorArr=["red","blue","black","grey","yellow","pink"]; | |
| var fontArr=["sans-serif","monospace","fantasy"]; | |
| // var marginArr=["120%","100%","100%","120%"]; | |
| var btn=document.getElementById("btn"); //your button id | |
| var text=document.getElementById("text"); //your text id | |
| var countColor=0,countFont=0,countMargin=0; | |
| btn.onclick=function(){ | |
| if(countColor<colorArr.length){ //change color |