18 Amazing programs in C.
1.) WAP to swap the value of three variable without using fourth variable. // program to swap the value of three variable with using fourth variable. #include <conio.h> #include <stdio.h> int main () { int a , b , c, s ; printf ( "Enter the value of a,b,c: \n " ); scanf ( " %d%d%d " , & a , & b , & c ); s =a; a =b; b =c; c = b ; printf ( "The value of a, b and c after inter -change is \n a = %d , \n b = %d , \n c = %d " , a , b , c ); return 0 ; } Output:- The value of a, b and c after interchange is a = 95, b = 3, c = 8 2.) WAP to check the character is upper case or lower case. // program to check the character is uppercase or lower case. #include <stdio.h> int main () { char ch ; printf ( "Enter the character lower as well upper case: \n " ); scanf ( " %c " , & ch ); ...
Thanks bhai for help me to complete java practical file
ReplyDelete