9.WAP to calculate the scholarship earned by Sathak who gets Rs. 500 per month for 5 years IN JAVA ONLY.
Answers
Answered by
2
public class Main
{
public static void main(String[] args)
{
int years = 5;
int months= years*12;
int scholarship = 500;
int total_earning = months*scholarship;
System.out.println("Sathak total earning from scholarship: "+total_earning);
}
}
Answered by
0
Answer:
public class Scholarship
{
public static void main (String [ ] args)
{
int Scholarship = 800;
double total = 800 * 12 * 5;
System.out.println ("Sathak's total scholarship = " +total);
}
}
OUTPUT:
Sathak's total scholarship = 48000
Thanks
Similar questions