D

@Dheerendra

02march)self-07.c

C
3 years ago
// Write a program in C to print all perfect numbers in given range using the function. #include <stdio.h> int main() { return 0; }

02march)self-06.c

C
3 years ago
//Decimal to binary number #include <stdio.h> long toBin(int); int main() { long bno; int dno; printf("Enter the Decimal number : "); scanf("%d",&dno); bno=toBin(dno); printf("\nDecimal number of %d = %ld",dno,bno);

02march)self-05.c

C
3 years ago
// function01- square of a number // #include <stdio.h> // double square(double num); // int main() { // int num; // double n; // printf("Enter number : "); // scanf("%d",&num); // n=square(5); // printf("\nSquare of %d is =

02march)self-04.c

C
3 years ago
//fibonacci series #include <stdio.h> int main() { int a=1,b=1,n,i,c; printf("Enter the number till fibonacci series : "); scanf("%d",&n); if(n==1){ printf("1 "); }else if(n==2){

02march)self-03.c

C
3 years ago
// keep on taking input from the user until user enters an odd number #include <stdio.h> int main() { int n; while(n%2==0){ printf("Enter number : "); scanf("%d",&n); printf("%d\n",n); }

02march)self-02

C
3 years ago
// sum upto given number #include <stdio.h> int main() { int sum=0,n; printf("Enter number upto which you need the sum : "); scanf("%d",&n); printf("\n"); for(int i=1,j=n;i<=n && j>=1;i++,j--){ sum = sum + i; //sum+=i

02march)self-01.c

C
3 years ago
// char errors #include <stdio.h> int main() { char stars1="* "; char stars2= "**"; char stars3="* "; return 0; }

01march)class-04.c

C
3 years ago
/*WAP to add two numbers using function with arguments and return a value*/ #include<stdio.h> int add(int,int); int main() { int a,b,result; printf("Enter two values = "); scanf("%d%d",&a,&b); result=add(a,b);

02march)class-03.sql

SQL
3 years ago
create table Employee(Empid varchar(255),Ename varchar(255),salary int,Dept_id int); insert into Employee(Empid,Ename,salary,Dept_id)values(101,"Anurag",12000,01),(102,"Anshu",10000,01),(103,"Manav",15000,02),(104,"Ankur",8000,03); create table Depa

02march)class-03.sql

SQL
3 years ago
create table Employee(Empid varchar(255),Ename varchar(255),salary int,Dept_id int); insert into Employee(Empid,Ename,salary,Dept_id)values(101,"Anurag",12000,01),(102,"Anshu",10000,01),(103,"Manav",15000,02),(104,"Ankur",8000,03); create table Depa

Hackkerrank-week-04-02.c

C
3 years ago
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int l, r, k;

Hackkerrank-week-04-01.c

C
3 years ago
// Given a five digit integer, print the sum of its digits. #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int n,sum=0,m; scanf("%d",&n);

02march)class-01.sql

SQL
3 years ago
-- join operation -- A JOIN clause is used to combine rows from two or more tables, based on a related column between them. create table Employee(Empid varchar(255),Ename varchar(255),salary int,Dept_id int); insert into Employee(Empid,Ename,salary,

01march)class-03.sql

SQL
3 years ago
-- write a query to find first and last name where employee's first name starts with j create table employee(EmpID int, EmpFirstName varchar(255),EmpLastName varchar(255),Address varchar(255),salary int); insert into employee(EmpID, EmpFirstName, Em

01march)class-06-Reverse.c

C
3 years ago
/*WAP to find the reverse of a number using function with arguments but not return a value*/ #include<stdio.h> void fn(int); int main() { int n; long int result; printf("Enter n = "); scanf("%d",&n);

01march)class-05-Factorial.c

C
3 years ago
/*WAP to find the factorial a number using function with arguments and return a value*/ #include<stdio.h> long int fn(int); int main() { int n; long int result; printf("Enter n = "); scanf("%d",&n);

01march)class-04--EvenOdd.c

C
3 years ago
/*WAP to find a number is even or odd using function with arguments but not return a value*/ #include<stdio.h> void fn(int); int main() { int n; printf("Enter n = "); scanf("%d",&n); fn(n);

01march)class-03-function.c

C
3 years ago
/*WAP to add two numbers using function with no arguments and return a value*/ #include<stdio.h> int add(); int main() { int result; result=add(); printf("\nsum= %d",result); return 0;

01march)class-02-function.c

C
3 years ago
/*WAP to add two numbers using function with arguments but not return a value*/ #include<stdio.h> void add(int,int); int main() { int a,b; printf("Enter two values = "); scanf("%d%d",&a,&b); add(a,b);

01march)class-01-function.c

C
3 years ago
/*WAP to add two numbers using function with no arguments and no return value*/ #include<stdio.h> void add(); int main() { add(); return 0; } void add()