Skip to content

Commit 8ff3175

Browse files
authored
617A
1 parent e86be59 commit 8ff3175

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Elephant.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
int main()
4+
{
5+
int a;
6+
cin>>a;
7+
int counter=0;
8+
if(a>0||a<6){
9+
//cout<<"1";
10+
}
11+
while(a>5){
12+
if(a>5){
13+
a=a-5;
14+
counter++;
15+
16+
}
17+
}
18+
19+
if(a>0||a<6){
20+
counter++;
21+
}
22+
cout<<counter;
23+
return 0;
24+
}
25+
//This code is contributed by Anas Jawed

0 commit comments

Comments
 (0)