Write a word in both Upper Case and Lower Case

C Program
#include <stdio.h>
#include <stdlib.h>
int main()
{
    char Str[10];
    printf("Enter any Word: ");
    scanf("%s",&Str);
    printf("Word: %s\n",&Str);
    printf("UPPERCASE: %s \n", strupr(Str));
    printf("lowercase: %s ", strlwr(Str));
}



Python Program
S = input("Enter a sentence: ")
print("Lower case: " + S.lower())
print("Upper case: " + S.upper() )

C program to find Sin, Cos, Tan of a number

C Program
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
   float x;
   printf("Enter Value of X:");
   scanf("%f",&x);
   printf("The sin of the value is :%f\n",sin(x));
   printf("The cos of the value is :%f\n",cos(x));
   printf("The tan of the value is :%f\n",tan(x));
}


Paper Measurement(Convert ream to sheets)

1 ream contains 500 sheets of paper

C Program
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int s,r;
    printf("Enter total ream of paper:");
    scanf("%d",&r);
    s=r*500;
    printf("Total sheets of paper in %d ream is %d",r,s);
    return 0;
}


Java Program
import java.util.Scanner;

public class PaperMeasurement {

	public static void main(String[] args) 
	{
		Scanner S = new Scanner(System.in);
		int s,r;
		System.out.print("Enter total ream of paper:");
	    r= S.nextInt();
		s=r*500;
		System.out.print("Total sheets of paper in " +r + " ream is " + s);
	}

}

Caculate Profit

Profit is calculated by subtracting cost price from selling price.
That is, Profit = SellingPrice - CostPrice

C Program
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int p,cp,sp;
    printf("Enter Cost Price:");
    scanf("%d",&cp);
    printf("Enter Selling Price:");
    scanf("%d",&sp);
     p=sp-cp;
    printf("Profit from the item is %d",p);
    return 0;
}


Java Program
import java.util.Scanner;

public class Profit {

	public static void main(String[] args) 
	{
		Scanner S = new Scanner(System.in);
		int p,cp,sp;
	    System.out.print("Enter cost Price:");
	    cp = S.nextInt();
	    System.out.print("Enter Selling Price:");
	    sp=S.nextInt();
	     p=sp-cp;
	    System.out.print("Profit from the item is " + p);
	  
	}

}