import java.io.*;
class a
{
public static void main(String a[])
{
int i,n=18;
for(i=1;i<=n;i++)
{
System.out.print(" "+(i));
System.out.println("My name is abhishek pandey");
}
}
}
The above program will print the string "My name is abhishek pandey" many times.And this many times depends upon the value of n.
class a
{
public static void main(String a[])
{
int i,n=18;
for(i=1;i<=n;i++)
{
System.out.print(" "+(i));
System.out.println("My name is abhishek pandey");
}
}
}
The above program will print the string "My name is abhishek pandey" many times.And this many times depends upon the value of n.
0 comments:
Post a Comment