Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- using namespace std;
- int main()
- {
- char a;
- int x,i;
- cin>>a;
- switch(a){
- case 'a':{
- for (x=3;x<16;x+=3){
- cout<< x <<"\t";}
- break;
- }
- case 'b':{
- for(x=24;x>8;x-=1) {
- if (x%4==0) continue;
- cout << x<<"\t";
- }
- break;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement