-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay13.cpp
More file actions
55 lines (49 loc) · 997 Bytes
/
Copy pathDay13.cpp
File metadata and controls
55 lines (49 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include<iostream>
using namespace std;
int main()
{
int n;
cout<<"Enter the number: ";
cin>>n;
// Fined Factorial
// if(n<0)
// {
// cout<<"not defined for negative number."<<endl;
// }
// else
// {
// int factorial = 1;
// while(n>0)
// {
// factorial *= n;
// n--;
// }
// cout<<"Factorial is: "<<factorial<<endl;
// }
// Not Divisible by 3 and 5 'continue'
// for(int i=1;i<=n;i++)
// {
// if(i%3==0 || i%5==0)
// {
// continue;
// }
// cout<<i<<" ";
// }
// Capital and Small letters (A-Z, a-z)
// char capi = 'A';
// cout<<"Enter Capital: ";
// cin>>capi;
// char smal = 'a';
// while(capi<='Z')
// {
// cout<<capi<<" ";
// capi++;
// }
// cout<<endl;
// while(smal<='z')
// {
// cout<<smal<<" ";
// smal++;
// }
// cout<<endl;
}