Recent programs

Emp

an anonymous user · August 05, 2021 · SQL
-- create a table
CREATE TABLE students (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL,
  gender TEXT NOT NULL
);
-- insert some values
INSERT INTO students VALUES (1, 'Ryan', 'M');
INSERT INTO students VALUES (2, 'Joanna', 'F');
-- fetch some values
SELECT * FROM students WHERE gender = 'F';

Scape Sequence

devendra · updated August 05, 2021 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) 
        {
            Console.WriteLine("\"Hello world!\"");
            Console.WriteLine("\'Hello world!\'");
            Console.WriteLine("Hello\nworld!");
            Console.WriteLine("Hello\tworld!");
            Console.WriteLine("Hello\\world!");

Manish

an anonymous user · August 05, 2021 · SQL
-- create a table
CREATE TABLE students (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL,
  gender TEXT NOT NULL
);
-- insert some values
INSERT INTO students VALUES (1, 'Ryan', 'M');
INSERT INTO students VALUES (2, 'Joanna', 'F');
-- fetch some values
SELECT * FROM students WHERE gender = 'F';
using System;


    class Program {
        public static void Main() 
        {
            Console.Write("Enter First Name: ");
            string Fname = Console.ReadLine();
            
            Console.Write("Enter Second Name: ");
            string Sname = Console.ReadLine();

student database

an anonymous user · August 05, 2021 · SQL
create table assesment(reg_no int,name varchar, mark1 int, mark2 int, mark3 int, total int);
insert into assesment values(001,"sam",70,70,70,210);
insert into assesment values(002,"joe",50,50,50,150);
insert into assesment values(003,"mike",70,60,50,180);
select*from assesment;





create table dept_details(dept_no int,dept_name varchar, location varchar);

Fibnocci Series

devendra · August 05, 2021 · C#
using System;

namespace MyCompiler 
{
    class Program 
    {
        public static void Main()
        {
            int first=0;
            int second=1;
            int next;

Fibnocci Series

an anonymous user · August 05, 2021 · C#
using System;

namespace MyCompiler 
{
    class Program 
    {
        public static void Main()
        {
            int first=0;
            int second=1;
            int next;

pointer and array

Sahilvadia7 · August 05, 2021 · C
#include <stdio.h>

void main()
{
    int arr[] = {1,2,3,4,5};
    int *p = arr;
    for(int i=0; i<5; i++)
    {
        printf("Address: %d \n",&arr[i]);
        printf("values: %d \n",arr[i]);
        

programa3.c

BrayanGutierrez · August 05, 2021 · C
#include<stdio.h>
//#include<conio.h>
int main()
{
    int num,num1,resultado;
    printf("Introduce el primer numero");
    return 0;
}

Mewow

an anonymous user · August 05, 2021 · SQL
-- create a table
CREATE TABLE students (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL,
  gender TEXT NOT NULL
);
-- insert some values
INSERT INTO students VALUES (1, 'Ryan', 'M');
INSERT INTO students VALUES (2, 'Joanna', 'F''''''''''''''''''''''''''''''''
''

Myfile

an anonymous user · August 05, 2021 · SQL
CREATE TABLE Persons (
    PersonID int,
    LastName varchar(255),
    FirstName varchar(255),
    Address varchar(255),
    City varchar(255)
);

Hostel Management

an anonymous user · August 05, 2021 · SQL
create table hostel (hno int , hname varchar[255] , type varchar[255]);

insert into hostel values(1, 'a', 'boy');

insert into hostel values(2, 'a', 'girl');

insert into hostel values(1, 'x', 'boy');

insert into hostel values(2, 'x', 'girl');

insert into hostel values(3, 'b', 'girl');

Students

an anonymous user · August 05, 2021 · SQL
-- create a table
CREATE TABLE students (
  
  name TEXT ,
  gender TEXT
);
-- insert some values
INSERT INTO students VALUES ('Ryan', 'M');
INSERT INTO students VALUES ('Joanna', 'F');
-- fetch some values
SELECT * FROM students;

Second Program

samriddhi_bisht · August 05, 2021 · SQL
-- create a table
CREATE TABLE students (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL,
  gender TEXT NOT NULL
);
-- insert some values
INSERT INTO students VALUES (1, 'Ryan', 'M');
INSERT INTO students VALUES (2, 'Joanna', 'F');
-- fetch some values
SELECT * FROM students WHERE gender = 'F';

Second Program

samriddhi_bisht · August 05, 2021 · SQL
-- creating table 1 
CREATE TABLE studentstable (
  name TEXT NOT NULL,
  id INTEGER PRIMARY KEY
);

-- inserting some values
INSERT INTO studentstable VALUES ('John Smith', 084);
INSERT INTO studentstable VALUES ('Jane Bloggs', 100);
INSERT INTO studentstable VALUES ('John Smith', 182);
INSERT INTO studentstable VALUES ('Mark Antony', 219);

Myfile

an anonymous user · August 05, 2021 · SQL
CREATE TABLE Persons (
    PersonID int,
    LastName varchar(255),
    FirstName varchar(255),
    Address varchar(255),
    City varchar(255)
);

Main

an anonymous user · August 05, 2021 · SQL
-- create a table
CREATE TABLE students (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL,
  gender TEXT NOT NULL
);
-- insert some values
INSERT INTO students VALUES (1, 'Ryan', 'M');
INSERT INTO students VALUES (2, 'Joanna', 'F');
-- fetch some values
SELECT * FROM students WHERE gender = 'F';

QUESTION 1 ASSIGNMENT

an anonymous user · August 05, 2021 · SQL
CREATE TABLE EMPLOYEE
( Fname char(30),
 Minit char(2),
 Lname char(30),
 Ssn integer not null primary key,
 Bdate date,
 Address char(30),
 Sex char(2),
 Salary integer,
 Super_ssn integer,
 Dno integer);

My first

an anonymous user · August 05, 2021 · SQL
CREATE TABLE Persons (
    PersonID int,
    LastName varchar(255),
    FirstName varchar(255),
    Address varchar(255),
    City varchar(255)
);

call by reference

Sahilvadia7 · August 05, 2021 · C
#include <stdio.h>

void increment(int *incre)
{
    *incre = (*incre) + 1 ;
}
void main() {
    
    int a = 10;
    printf("before value of a is: %d \n",a);
    increment(&a);