D

@Dheerendra

13)Swap2.c

C
3 years ago
//Swap values without using third variable #include<stdio.h> int main() { int a,b; printf("Enter a = "); scanf("%d",&a); printf("\nEnter b = "); scanf("%d",&b); printf("\nBefore swaping : a=%d b=%d \n",a,b);

12)Swap.c

C
3 years ago
//Swap values using third variable #include<stdio.h> int main() { int a,b,c; printf("Enter a="); scanf("%d",&a); printf("Enter b="); scanf("%d",&b); printf("\nBefore swaping : a=%d b=%d\n",a,b);

10)PositiveORnot2.c

C
3 years ago
//Find the entered value is positive or negative #include<stdio.h> int main() { double num; printf("Enter num="); scanf("%lf",&num); printf("\nnum=%lf\n",num); (num<=0.0)?((num==0.0)?printf("Its Zero"):

09)PositiveORnot.c

C
3 years ago
//Find the entered value is positive or negative #include<stdio.h> int main() { double num; printf("Enter num="); scanf("%lf",&num); printf("\nnum = %.2f\n",num); // for print num upto two digits (num<0.0)?printf("Its negative"):printf("Its positi

08)alphabetORnot.c

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

07)vowelORconsonant.c

C
3 years ago
//Find the entered value is Vowel or consonant #include<stdio.h> int main() { char value; int l,u; printf("Enter value="); scanf("%c",&value); printf("\nvalue=%c\n",value);

06)size.c

C
3 years ago
//Error in this //Find size of different data types #include<stdio.h> int main() { printf("Here is the size of int = %lu\n",sizeof(int)); printf("Here is the size of float = %lu\n",sizeof(float)); printf("Here is the size of char = %lu\n",sizeo

05)input.c

C
3 years ago
// ASCII value // taking input from user #include<stdio.h> int main() { char k; printf("Enter Character: "); scanf("%c",&k); printf("\nk=%c",k); printf("\nk=%c",k);

04)Arithmetic3.c

C
3 years ago
//Arithmetic operations #include<stdio.h> int main() { int a=10,b,add,sub,mul,div,mod; printf("Enter a value=\n"); scanf("%d",&a); printf("Enter b value="); scanf("%d",&b); printf("\na=%d,b=%d", a,b);

03)Arithmetic2.c

C
3 years ago
//Arithmetic operations #include<stdio.h> int main() { int a=20,b=10,add,sub,mul,div,mod; printf("a=%d,b=%d",a,b); add=a+b; printf("\nResult=%d\n",add); sub=a-b; printf("Result=%d\n",sub);

02)Arithmetic.c

C
3 years ago
//Arithmetic operations #include<stdio.h> int main() { int a=20,b=10,c; printf("a = %d, b = %d",a,b); c=a+b; printf("\nResult = %d",c); c=a-b; printf("\nResult = %d",c);

01)Hello.c

C
3 years ago
/*print("Hello") first program*/ #include<stdio.h> int main(){ printf("Hello COURA"); }