Skip to content

Commit c9f0819

Browse files
Capital or Small or Digit Solved using C++
1 parent 6eb95b3 commit c9f0819

7 files changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"C. Simple Calculator","group":"Codeforces - Sheet #1 (Data type - Conditions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/C","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"5 10\n","output":"5 + 10 = 15\n5 * 10 = 50\n5 - 10 = -5\n","id":1718696384740}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"CSimpleCalculator"}},"batch":{"id":"fbfbd67f-da9e-43c5-af95-0000bdecd962","size":1},"srcPath":"f:\\Tutorials\\Video Tutorials\\Phitron\\2. Introduction to C++\\C_Simple_Calculator.cpp"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"M. Capital or Small or Digit","group":"Codeforces - Sheet #1 (Data type - Conditions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/M","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"A\n","output":"ALPHA\nIS CAPITAL\n","id":1718695015769},{"input":"9\n","output":"IS DIGIT\n","id":1718695015733},{"id":1718695015778,"input":"a\n","output":"ALPHA\nIS SMALL\n"}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"MCapitalOrSmallOrDigit"}},"batch":{"id":"0403979d-86d8-483b-aeaa-39234153a54a","size":1},"srcPath":"f:\\Tutorials\\Video Tutorials\\Phitron\\2. Introduction to C++\\M_Capital_or_Small_or_Digit.c"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"M. Capital or Small or Digit","group":"Codeforces - Sheet #1 (Data type - Conditions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/M","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"A\n","output":"ALPHA\nIS CAPITAL\n","id":1718695406471},{"input":"9\n","output":"IS DIGIT\n","id":1718695406534},{"id":1718695406491,"input":"a\n","output":"ALPHA\nIS SMALL\n"}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"MCapitalOrSmallOrDigit"}},"batch":{"id":"cdd328ef-c96b-48da-9c41-15655d03ce91","size":1},"srcPath":"f:\\Tutorials\\Video Tutorials\\Phitron\\2. Introduction to C++\\M_Capital_or_Small_or_Digit.cpp"}

C_Simple_Calculator.cpp

Whitespace-only changes.

M_Capital_or_Small_or_Digit.bin

48.4 KB
Binary file not shown.

M_Capital_or_Small_or_Digit.cpp

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
char x;
7+
cin >> x;
8+
if (x >= 65 && x <= 90 || x >= 97 && x <= 122)
9+
{
10+
cout << "ALPHA" << endl;
11+
if (x >= 65 && x <= 90)
12+
{
13+
cout << "IS CAPITAL" << endl;
14+
}
15+
else
16+
{
17+
cout << "IS SMALL" << endl;
18+
}
19+
}
20+
else
21+
{
22+
cout << "IS DIGIT" << endl;
23+
}
24+
25+
return 0;
26+
}

increase_size_of_dynamic_array.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
7+
return 0;
8+
}

0 commit comments

Comments
 (0)