Given an integer
N as input, write a program to print a number diamond of 2*N -1 rows as shown below.Note: There is a space after each number.
The first line of input is an integer
N.
In the given example, the number of rows in the diamond is
5.So, the output should be
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4
1 2 3
1 2
14,So the output should be
1
1 2
1 2 3
1 2 3 4
1 2 3
1 2
1write a pseudocode and flowchart to input employee number, employee name, basic salary , allowance and deduction of the employee. find out net salary of employee . employee get a bonus salary which is 10 percent of net salary and 5 % of basic salary , company awards a festival advance which is price 10000 for this month festival advance included for the Gross salary but for the next month it is excluded. find out and output net salary , bonus salary , gross salary of the current month ans gross salary of the next month
Given two strings
Sample Input 1
JavaScript
S
Sample Output 1
Script
Sample Input 2
Language
air
Sample Output 2
Language
What is the output of the following C++ code?
x = 5; y = 30;
while (x <= y)
x = x * 2;
cout << x << " " << y << endl;
#include <iostream.h>
using namespace std;
int main( void )
{
int y;
int x = 3;
int total = 0;
while ( x <= 10 ) {
y = x * x * x;
cout<<y<<endl;
total += y;
++x;
} // end while
Cout<< "The total is: "<< total <<end;
} // end main
Accept one number and find out if its positive or negative number using class