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 "spv.h" | |
void main(){ | |
SPV test; | |
SPVconstruct(3,&test); //this shows 3 garbage values | |
//SPVconstruct(0,&test); //this works fine | |
int i; | |
for(i=0;i<3;i++){ |
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<stdio.h> | |
#include<math.h> | |
void main(){ | |
int x; | |
printf("Press 1 for Dec to Bin \nPress 2 for Dec to Hexa \nPress 3 for Dec to Oct\n"); | |
printf("Press 4 for Bin to Dec \nPress 5 for Bin to Hexa \nPress 6 for Bin to Oct\n"); | |
printf("Press 7 for Oct to Dec \nPress 8 for Oct to Hexa \nPress 9 for Oct to Bin\n"); | |
printf("Press 10 for Hexa to Dec \nPress 11 for Hexa to Bin \nPress 12 for Hexa to Oct\n\n"); | |
scanf("%d",&x); |
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 | |
text db "HELLO WORLD $" | |
.code | |
main proc | |
mov bx,@data | |
mov ds,bx |
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 | |
first dw 'Enter 1st Input: $' | |
second dw 'Enter 2nd Input: $' | |
dis dw 'Display:$' | |
a db ? | |
b db ? | |
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 | |
num db ? | |
.code | |
main proc | |
mov ax,@data | |
mov ds,ax |
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 arr[]={9,4,3,12,8,0}; | |
int sz=6; | |
for(int i=0;i<sz;i++){ | |
for(int j=0;j<sz;j++){ | |
if(arr[j]>arr[j+1]){ |
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 | |
input1 db 'Enter Input[1]: $' ;define variables | |
input2 db 'Enter Input[2]: $' | |
num1 db ? | |
num2 db ? | |
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
>>select customer_street from customer where customer_name in (select customer_name from borrower where loan_number in (select loan_number from loan where amount=(select max(amount) from loan))); | |
>> select amount from loan where amount>(select amount from loan where loan_number='L-15'); | |
>> select customer_name,customer_city from customer where customer_name in (select customer_name from borrower where loan_number in (select loan_number from loan where branch_name in (select branch_name from loan where branch_name='Downtown'))); | |
>> select customer_name,customer_city from customer where customer_name in (select customer_name from borrower); | |
>> select customer_name from borrower where loan_number in (select loan_number from loan where branch_name = (select branch_name from loan where loan_number=(select loan_number from borrower where customer_name='Adams'))); |
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
;code to take 3 char input and print them in reverse way | |
.model small | |
.stack 100h | |
.data | |
input db 'INPUT: $' | |
output db 'OUTPUT: $' | |
.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
;case conversion (UPPER -> LOWER) | |
.model small | |
.stack 100h | |
.data | |
up db 'Upper: $' | |
low db 'Lower: $' | |
a db ? | |