Class newprog
{
public static void main()
{
System.out.println("Hello world");
}
}
It should be compiled. It won't work if it's not compiled.
Answer:
Go on account settings, go to subscription, and upgrade.
Explanation:
Answer:
#include<iostream>
using namespace std;
int main (){
int n1, n2;
cout<<"Enter 1st number";
cin>>n1;
cout<<"Enter 2nd number";
cin>>n2;
if(n1<n2){
cout<<"The 1st number is the smallest"<<endl<<" is= "<<n1;
}
else{
cout<<"The 2nd number is the smallest"<<endl<<" is= "<<n2;
}
}
return 0;