A management information system is a computer system consisting of hardware and software that serves as the backbone of an organization's operations
import java.util.Scanner;
public class JavaApplication42 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int count = 0;
System.out.println("Enter an integer between 0 and 100");
int num = scan.nextInt();
if (num <= 0 || num >= 100){
System.out.println("error");
}
else{
while(num <= 100){
if (count == 20){
System.out.println("");
count = 0;
}
else{
System.out.print(num+" ");
count++;
num++;
}
}
}
}
}
I hope this helps!
Explanation:
in c++
#include<iostream.h>
#using namespace std;
main()
{ float x,y,z,r, phi, theta;
cout<<" enter the value of x";
cin>>x;
cout<<" enter the value of y";
cin>>y;
cout<<" enter the value of z";
cin>>z;
r = (sqrt(pow(x,2) + pow(y, 2) + pow(z, 2)));
phi = (asinf(y/r)*180.0f)/PI;
theta = (asinf(-x/(r*cosf(phi)))*180.0f)/PI;
cout<<"The radius r= "<<r;
cout<<"The phi angle= "<<phi;
cout<<"The theta angle= "<<theta;
return 0;
}