D

@Dheerendra

14march)shradha-array-01.c

C
3 years ago
// array - 01 #include <stdio.h> int main() { int marks[3]; printf("Enter physics : "); scanf("%d",&marks[0]); printf("\nEnter chem : "); scanf("%d",&marks[1]);

13march)class-02.c

C
3 years ago
//Formatted functions // #include<conio.h> #include <stdlib.h> #include<stdio.h> #include<math.h> int main() { int a1= 97,a; float b= 2311.126; char s[40]="I am going to attend lecture";

13march)class-01.c

C
3 years ago
//Unformatted functions #include<stdio.h> // #include<conio.h> #include<math.h> int main() { //char c1[10]; // printf("\nEnter a string : "); // //scanf("%s",&c1); // //gets(c1);

10march)Hackerr-week-05.c

C
3 years ago
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int primeNumber(int n); int palindrome(int n); int main() { int n,a,b; scanf("%d",&n); a=primeNumber(n);

10march)Shradha-07.c

C
3 years ago
// write a program to print sum,average using pointers of three numbers #include <stdio.h> int main() { return 0; }

10march)Shradha-06.c

C
3 years ago
//will the address output be same #include <stdio.h> void printAddress(int n); int main() { int n=4; printf("Address of n is %u\n",&n); printAddress(n); printf("Address of n is %u\n",&n);

10march)Shradha-05.c

C
3 years ago
#include <stdio.h> void swap(int a,int b); void _swap(int *a,int *b); int main() { int x=3,y=5; printf("x = %d and y = %d\n",x,y); swap(x,y); printf("x = %d and y = %d\n",x,y); _swap(&x,&y);

10march)Shradha-02.c

C
3 years ago
//Write a function to convert celsius to fahrenheit #include <stdio.h> float convertTemp(float(celsius)); int main(){ int n; printf("Enter celsius temperature : "); scanf("%d ",&n); float far=convertTemp(n); printf("\nfar : %.0f

10march)Shradha.c

C
3 years ago
//write a program in c to print tables #include <stdio.h> int printTable(int n); int main(){ int n; printf("Enter number : "); scanf("%d",&n); printTable(n); return 0; }

07march)self-01.c

C
3 years ago
// Write a program in c to print all the numbers in given input a and b // which are both palindrome and perfect numbers #include <stdio.h> int palindrome (int num); int perfect(int num); int main() { int a,b,c,d,e,f; printf("Enter a : ");

07march)self-02.c

C
3 years ago
// write a program in c to check whether the given number is palindrome or perfect number // or both #include <stdio.h> int palindrome(int num); int perfect(int num); int main() { int num,per,pal; printf("Enter num : "); scanf("%d",&num

01march)class-04-function.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);

06march)Armstrong-02.c

C
3 years ago
/* Armstrong number examples-370,371,153,407 */ #include<stdio.h> int main(){ int n,original,result,remainder; printf("Enter an three digit integer:"); scanf("%d",&n); original=n; while(n!=0){

06march)Armstrong1.c

C
3 years ago
//Checking Armstrong number for a variable length of number #include <stdio.h> #include <math.h> void main(){ int num,r,sum=0,temp,Nnum,count; printf("Input a number: "); scanf("%d",&num); Nnum=num; temp=num;

06march)class-01.sql

SQL
3 years ago
-- order by command in SQL create table Employee1(Empid varchar(255),Ename varchar(255),Ecity varchar(255),Esalary int,Dept_id int); insert into Employee1(Empid,Ename,Ecity,Esalary,Dept_id)values(101,"Anurag","Delhi",12000,01),(102,"Anshu","Goa",100

04march)class-04.c

C
3 years ago
//print Fibonacci series using Recurssion #include<stdio.h> int Fibonacci(int); int main() { int n, i; printf("\nEnter number of terms you want to print :"); scanf("%d",&n); printf("\nFibonacci series : "); for(i=0;i<n;i++)

04march)class-03.c

C
3 years ago
//Sum of numbers from 1 to n range using recurssion #include <stdio.h> int addNumbers(int n); int main() { int num; printf("Enter a positive integer: "); scanf("%d", &num); printf("\nSum = %d",addNumbers(num)); return 0;

04march)class-03.c

C
3 years ago
//Find the factorial of a number using recurssion #include <stdio.h> long long int factorial(int); int main() { int n; printf("Enter a positive integer: "); scanf("%d", &n); printf("\nFactorial of %d = %lld", n, factorial(n)); return 0;

02march)self-08.c

C
3 years ago
// Write a program in C to print the Floyd's Triangle. The Floyd's triangle is as below : // 1 // 01 // 101 // 0101 // 10101 #include <stdio.h> void main()

02march)self-08.c

C
3 years ago
//Write a program in C to check whether two given strings are an anagram. //example-pears and spare #include <stdio.h> #include <string.h> #include <stdlib.h> int checkAnagram(char *str1, char *str2); int main() { char str1[100], str2[100];