n i dont have...what is that i could do now ?
Type: Posts; User: divy
n i dont have...what is that i could do now ?
whats a unit test program ?
how t write it for the above program?
import java.util.Scanner;
class FloydTriangle
{
public static void main(String [] args)
{
int n, i, c;
no my assignment is the above given problem. i'm getting a triangle but not getting a single line which is required. pl do help
Write a program that accepts the line number from the user and prints only that particular line from the Floyd triangle.
Example:
Input: 2
Output: 2 3
Input: 3
Output: 4 5 6