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
#find LCM of n integers | |
echo "enter the number of elements " | |
read n | |
i=0 | |
for ((i=0;i<n;i++)) | |
do | |
echo "data?" | |
read A[$i] | |
done |
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
-- create table employee(emp_id varchar2(5)primary key, | |
-- person_name varchar2(20), | |
-- dob date , | |
-- street varchar2(20),city varchar2(20) | |
-- ); | |
-- modify | |
create table employee(emp_id varchar2(5) primary key, | |
person_name varchar2(20) not null, | |
dob date check(dob<'1-jan-2000'), | |
street varchar2(20) default 'N/A', |
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
CREATE TABLE CUSTOMER( | |
CUSTOMER_ID NUMBER(5), | |
CUSTOMER_NAME VARCHAR2(25), | |
CUSTOMER_STREET VARCHAR2(20), | |
CUSTOMER_CITY VARCHAR2(20), | |
PRIMARY KEY(CUSTOMER_ID) | |
); | |
CREATE TABLE BRANCH( |
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
// author: dipankar pal (c) copyright 2017 | |
// assignment 01 : choice no: 2 | |
// 11 - sep -2017 | |
#include <iostream> | |
#include<cstdlib> | |
using namespace std; | |
const int size=100; | |
/////////////////////////////// CLASS ///////////////////////// |
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
// author: dipankar pal (c) copyright 2017 | |
// assignment 01 : choice no: 2 | |
// 11 - sep -2017 | |
#include <iostream> | |
#include<cstdlib> | |
using namespace std; | |
const int size=100; | |
/////////////////////////////// CLASS ///////////////////////// |
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> | |
#include <cstring> | |
#include <fstream> | |
#define max_size 100 | |
using namespace std; | |
// global count for cars | |
int apc_count = 0, nap_count = 0, acpu_count = 0, napu_count = 0; |
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
create table employee(emp_id varchar2(5)primary key, | |
person_name varchar2(20),dob date , | |
street varchar2(20),city varchar2(20) | |
); | |
SQL> desc employee; | |
Name Null? Type | |
----------------------------------------- -------- ---------------------------- | |
EMP_ID NOT NULL VARCHAR2(5) | |
PERSON_NAME VARCHAR2(20) |
NewerOlder