public class MyClass {
public static void main(String args[]) {
int n;
Scanner s=new Scanner(System.in);
n=s.nextInt();
for(int i=1;i<=n;i++)
{
for(int j=i;j<=(n+i-1);j++)
{
System.out.print(j);
}
System.out.println("");
}
}
}
public static void main(String args[]) {
int n;
Scanner s=new Scanner(System.in);
n=s.nextInt();
for(int i=1;i<=n;i++)
{
for(int j=i;j<=(n+i-1);j++)
{
System.out.print(j);
}
System.out.println("");
}
}
}
can we run this in C language
ReplyDeleteno u can run in java only
ReplyDelete