A statement with an "I am" phrase could be used to communicate one's feelings in a non-confrontational manner. I hope this answer helps. Have a great day ahead.
// Simple Java program to find sum of series
// with cubes of first n natural numbers
import java.util.*;
import java.lang.*;
class GFG {
/* Returns the sum of series */
public static int sumOfSeries(int n)
{
int sum = 0;
for (int x = 1; x <= n; x++)
sum += x * x * x;
return sum;
}
// Driver Function
public static void main(String[] args)
{
int n = 5;
System.out.println(sumOfSeries(n));
}
}
// Code Contributed by Mohit Gupta_OMG <(0_o)>
Answer:
Explanation:
As a user of GPL v3 software, you have lots of freedom: You can use GPL software for commercial purposes. You can modify the software and create derivative work. You can distribute the software and any derivative work you produce, without having to ask for permission or pay
Answer:
#include <iostream>
using namespace std;
int main() {
int *ip_arr,n;//pointer name inp_arr and integer n to store the size.
cin>>n;//size.
for(int i=0;i<n;i++)
ip_arr[i]=-1;//assigning -1 to every element.
for(int i=0;i<n;i++)
{
cout<<ip_arr[i]<<" ";//printing every element.
}
return 0;
}
output:-
100
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
Explanation:
I am taking input of size.You should enter 100 for 100 values which have value -1.