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);
}
}