#include <iostream>
using namespace std;
int main() {
cout << "Hello World!";
return 0;
}
#include <iostream>
using namespace std;
int main ()
{
int n;
cout << "the value of integer ";
cin>>n;
if (n%2==0)
cout<<"is even "<<endl;
else
cout<<"is odd ";
return 0;
}
//C++ Program to Check Whether a character is Vowel or Consonant
#include <iostream>
using namespace std;
int main()
{
char c='a';
if (c="a"||c='e'||c='i'||c='o'||c='u')
cout<<"the value of alphabet is vowel"<<endl;
else
cout<<"the value is consonant"<<endl;
return 0;
}
//C++ Program to Find Largest Number Among Three Numbers
#include<iostream>
using namespace std;
int main ()
{
int a,b,c;
cin>>a>>b>>c;
if(a>b>c)
cout<<"a is greatest";
if(a<b>c)
cout<<"b is greatest";
if (a<b<b)
cout<<"c is greatest";
return 0;
}
//C++ Program to Find Quotient and Remainder
#include <iostream>
using namespace std;
int main()
{
int quotient,reminder,dividend,divisor;
cout<<"enter dividend"<<endl;
cin>>dividend;
cout<<"enter divisor"<<endl;
cin>>divisor;
quotient=dividend/divisor;
cout<<"quotient ="<<quotient<<endl;
reminder=dividend%divisor;
cout<<"reminder ="<<reminder<<endl;
return 0;
}
// C++ Program to Find Size of int, float, double and char in Your System
#include<iostream>
using namespace std;
int main()
{
cout<<"the size of int "<<sizeof(int)<<endl;
cout<<"the size of float "<<sizeof(float)<<endl;
cout<<"the size of char "<<sizeof(char)<<endl;
cout<<"the size of double "<<sizeof(double)<<endl;
cout<<"the size of long double "<<sizeof(long double)<<endl;
cout<<"the size of bool "<<sizeof(bool)<<endl;
return 0;
}