How to C

[upon request] Shell program to find palindrome of a number

›
echo "enter the number" read num t=$num while [ $num -gt 0 ] do rem=$((num%10)) rev=$((((rev * 10 )) + $rem)) num=$((nu...

[upon request] Shell program to find factorial

›
echo "Enter the number " read n fact=1 for((i=1;i<=n;i++)) do fact=`expr $fact \* $i` done echo factorial $fact

[upon request] Shell Program for Binary Search

›
echo "enter the size of the array" read n echo "enter the array elements" for((i=0;i<n;i++)) do  read a[i] do...

Program to perform palindrome in a function with reverse as a seperate function.

›
#include<stdio.h> int rev(int); void pali(int); void main() { int a; printf("\n enter a number"); scanf("%d...

Program to change string to upper case using function

›
#include<stdio.h> #include<string.h> #include<ctype.h> void upper(char a[]); void main() { char a[80]; printf(...
›
Home
View web version
Powered by Blogger.