Advertisement
syntaxattacks

Assignment 5 Example

Feb 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. int last,first;
  2. Console.WriteLine("Enter first number:");
  3. first=int.Parse(Console.ReadLine());
  4. Console.WriteLine("Enter first number:");
  5. last=int.Parse(Console.ReadLine());
  6. if(last<first)
  7. Console.WriteLine("second number hast grater than first number");
  8. if(first<=2 && first>=8 && last<=2 && last>=8)
  9.     {  for(int c = 1; c <= 15; c++)
  10.       {
  11.             Console.WriteLine(c + "| ");
  12.              for(int i = 1; i <=last; i++)
  13.              {
  14.             Console.WriteLine(i *c + '\t');
  15.              }
  16.              Console.WriteLine('\n');
  17.       }}
  18.       Console.WriteLine("Base values can range from 2 through 8");
  19.       Console.Read();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement