Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int broj;
- cin >> broj;
- if (broj==1){
- cout<<31;
- }
- if (broj==2){
- cout<<28;
- }
- if (broj==3){
- cout<<31;
- }
- if (broj==4){
- cout<<30;
- }
- if (broj==5){
- cout<<31;
- }
- if (broj==6){
- cout<<30;
- }
- if (broj==7){
- cout<<31;
- }
- if (broj==8){
- cout<<31;
- }
- if (broj==9){
- cout<<30;
- }
- if (broj==10){
- cout<<31;
- }
- if (broj==11){
- cout<<30;
- }
- if (broj==12){
- cout<<31;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment