cout<<"program 2\n"; cout<<"exercise 3 and 4\n"; char c1, c2, c3; cout<<"enter a three letter word\n"; cin>>c1>>c2>>c3; cout<>num; if (num>0) cout<<"a\n"; else cout<<"b\n"; cout<<"exercise 7 and 8\n"; int num1; cin>>num1; if (num1>=6 && num1<=20) cout<<"between\n"; else cout<<"outside\n"; cout<<"exercise 9 and 10 and 11\n"; int num2, x=20; cin>>num2; if (num2==7|| num2<5) { cout<<"b\n"; x=200; } else{ cout<<"c\n"; x=500;
#include using namespace std; int main() { cout<<"Program 4\n"; cout<<"exercise 1 and 2\n"; int x, y=89; double d; cout<<"enter one integer and one double\n"; cin>>x>>d; cout<<"product="<
Comments 7
Reply
Reply
Reply
Reply
using namespace std;
int main ()
{
cout<<"program 2\n";
cout<<"exercise 3 and 4\n";
char c1, c2, c3;
cout<<"enter a three letter word\n";
cin>>c1>>c2>>c3;
cout<>num;
if (num>0) cout<<"a\n";
else cout<<"b\n";
cout<<"exercise 7 and 8\n";
int num1;
cin>>num1;
if (num1>=6 && num1<=20) cout<<"between\n";
else cout<<"outside\n";
cout<<"exercise 9 and 10 and 11\n";
int num2, x=20;
cin>>num2;
if (num2==7|| num2<5)
{
cout<<"b\n";
x=200;
}
else{
cout<<"c\n";
x=500;
}
cout<
Reply
using namespace std;
int main()
{
cout<<"Program 4\n";
cout<<"exercise 1 and 2\n";
int x, y=89;
double d;
cout<<"enter one integer and one double\n";
cin>>x>>d;
cout<<"product="<
Reply
using namespace std;
int main ()
{
cout<<"program 3\n";
cout<<"exercise 12\n";
char ch1='a', ch2='z';
if(ch1<'n'&&ch1
Reply
Leave a comment