Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. char a;
  10. int x,i;
  11. cin>>a;
  12. switch(a){
  13. case 'a':{
  14.  
  15. for (x=3;x<16;x+=3){
  16. cout<< x <<"\t";}
  17. break;
  18. }
  19. case 'b':{
  20.  
  21. for(x=24;x>8;x-=1) {
  22. if (x%4==0) continue;
  23. cout << x<<"\t";
  24. }
  25. break;
  26. }
  27. }
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement