Advertisement
Guest User

program for

a guest
Nov 13th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a, n;
  6.  
  7. cout<<"Masukan angka : ";
  8. cin>>n;
  9.  
  10. for(a=1;a<=n;a++){
  11. if(a%3==0)
  12. cout<< a<<endl;
  13. }else{
  14. cout<< a<<endl;
  15. }
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement