Skip to content

Commit 1a989ea

Browse files
authored
zozaa
1 parent 37bb49f commit 1a989ea

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Project1.exe

1.83 MB
Binary file not shown.

main.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#include <iostream>
2+
#include <math.h>
3+
4+
using namespace std;
5+
6+
int main() {
7+
cout << "\t\tWelcome to our program!\n";
8+
cout<<"\tTry this please.\n";
9+
10+
int dig;
11+
cout<<"Enter an integer(20-400):";
12+
cin>>dig;
13+
14+
if (dig < 20 ) {
15+
cout<<"This program does not deal in complex numbers";
16+
}
17+
18+
else if(dig > 400) {
19+
cout<<"Number out of range [20-400]";
20+
}
21+
22+
else{
23+
cout <<" Successful!! it runs";
24+
}
25+
return 0;
26+
}

0 commit comments

Comments
 (0)