D

@Dheerendra

24)18\feb-01.c

C
3 years ago
//sum of all numbers from 1 to n using while loop #include<stdio.h> int main() { int n,i=1,sum=0; printf("Enter n= \n"); scanf("%d",&n); printf("Number is : %d\n",n); while(i<=n) {

#04)Pattern02.c

C
3 years ago
/*Write a program in C to display the pattern like right angle triangle with a number.*/ #include <stdio.h> void main() { int i,j,rows; printf("Input number of rows : "); scanf("%d",&rows); printf("\nNo. of rows = %d\n",rows);

#04)Pattern01.c

C
3 years ago
/* Write a program in C to display the pattern like right angle triangle using an asterisk*/ #include <stdio.h> void main() { int i,j,rows; printf("Input number of rows : "); scanf("%d",&rows); printf("\nNo. of rows = %d\n",rows); for

#03)Table.c

C
3 years ago
/*Write a program in C to display the n terms of odd natural number and their sum*/ #include <stdio.h> int main() { int i,n,sum=0; printf("Input number of terms : "); scanf("%d",&n); printf("\nThe odd numbers are :"); for(i=1;i<=n;i+

#03)Table.c

C
3 years ago
/*Write a program in C to display the multiplication table of a given integer*/ #include <stdio.h> int main() { int j,n; printf("Input the number (Table to be calculated) : "); scanf("%d",&n); printf("\n"); for(j=1;j<=10;j++) {

#2)Cube.c

C
3 years ago
/*Write a program in C to display the cube of the number upto given an integer.*/ #include <stdio.h> int main() { int i,ctr; printf("Input number of terms : "); scanf("%d", &ctr); for(i=1;i<=ctr;i++) { printf("\nNumber is : %d

#1)Program01.c

C
3 years ago
/*Sum of 10 input numbers and their average*/ #include <stdio.h> int main() { int i,n,sum=0; float avg; printf("Enter the 10 numbers : \n"); for (i=1;i<=10;i++) { scanf("%d",&n);

#1)First10NaturalNumbersAndTheirSum.c

C
3 years ago
#include <stdio.h> int main() { int j, sum = 0; printf("The first 10 natural number is :\n"); for (j = 1; j <= 10; j++) { sum = sum + j;

01)CreateTable.sql

SQL
3 years ago
-- create a table /* printing table in descending order*/ CREATE TABLE Student1(rollno int,name varchar(255),registration varchar(255)); insert into Student1(rollno, name, registration)values(01,"Coura1",12216237); insert into Student1(rollno, name,

23)For-N_natural_Number.c

C
3 years ago
/*Display first n natural numbers using for loop*/ #include<stdio.h> int main() { int i,num; printf("Enter num= "); scanf("%d",&num); for(i=1;i<=num;i++) printf("%d ",i);

21)Calculator.c

C
3 years ago
//create a calculator using switch-case #include<stdio.h> int main() { double a,b; char c; printf("Enter operation= "); scanf("%c",&c); printf("\nEnter a="); scanf("%lf",&a);

20)Switchcase-Geometry.c

C
3 years ago
//Geometry example with switch-case #include<stdio.h> int main() { int pt; printf("Enter the number of nodes:"); scanf("%d", &pt); switch(pt){ case 0: printf("\nNo Geometry");

20)Greatest_of_three2.c

C
3 years ago
//Display the greatest of three using if-inside-if #include<stdio.h> int main() { int a,b,c; printf("Enter a,b,c="); scanf("%d%d%d",&a,&b,&c); if(a>b) if(a>c) printf("\na = %d is greatest",a);

20)Greatest_of_three.c

C
3 years ago
//Display the greatest of three using else-if ladder #include<stdio.h> int main() { int a,b,c; printf("Enter a, b, c="); scanf("%d %d %d",&a,&b,&c); if(a>b && a>c) printf("\na = %d is greatest",a);

19)Positive_NegativeOR_Zero.c

C
3 years ago
//Entered value is positive, negative or zero using //else-if ladder #include<stdio.h> int main() { int n; printf("Enter n="); scanf("%d",&n); if(n>0) printf("\nIts positive");

18)Alphabet_OR_not.c

C
3 years ago
//Find the entered value is alphabet or not using if-else #include<stdio.h> int main() { char value; printf("Enter value="); scanf("%c",&value); if((value>='a'&&value<='z')||(value>='A'&& value<='Z')) printf("\nIts an alphabet");

17)Vowel_Consonant.c

C
3 years ago
//Find the entered value is Vowel or consonant using if-else #include<stdio.h> int main() { char value; int l,u; printf("Enter value="); scanf("%c",&value); l=(value=='a'||value=='e'||value=='i'||value=='o'||value=='u');

16)Even_OR_Odd.c

C
3 years ago
/*Check entered value is even or odd using if-else*/ #include<stdio.h> int main() { int num; printf("Enter num="); scanf("%d",&num); if(num%2==0) printf("\nIt is even");

15)Lessthan100.c

C
3 years ago
/*Check entered value is less than 100 or not using simple if*/ #include<stdio.h> int main() { int num; printf("Enter num="); scanf("%d",&num); if(num<100) printf("\nIts less than 100");

14)format.c

C
3 years ago
#include<stdio.h> int main() {int i1,i2; float f1,f2; printf("Enter Integers: "); scanf("%d, %d",&i1, &i2); printf("\nEnter float: "); scanf("%f, %f\n",&f1,&f2); scanf("float and int values : %d, %d, %f, %f ",&i1,&i2,&f1,&f2); printf("\nint : %d %d\