import java.io.*;
class population
{
private int P,X;
population(int a,int b)
{
P=a;
X=b;
}
private void gr()
{
int c=100+X;
P=(P*c)/100;
}
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the population at the begining of 1999: ");
int a=Integer.parseInt(in.readLine());
System.out.print("Enter the growth rate: ");
int b=Integer.parseInt(in.readLine());
population o=new population(a,b);
short l=2000;
while(l<2004)
{
o.gr();
System.out.println("Population at the begining of "+l+" : "+o.P);
l++;
}
}}
write a vb program to find the magic square
For first find an example program.
Write a program to find the grade obtained by the students of a class
Yes, do write. That's what you always have to do when you have got a homework-program.
write an assembly language program to find sum of N numbers
Write a c program to compute the surface area and volume of a cube
program to find maximum of two numbers using pointers
i am sam
matrix
This is an assignment not a question.
what is if(!(str[i]==32))
bgfygfrhjyuyhh