Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std ;
- int main(){
- int x,y,z,total=0;
- cout<<"bilangan : ";
- cin>>x;
- for (y = 21;y<=21;y++);
- for (z = 21;z<=x*21;z=z+21){
- cout<<z<<" ";
- total=total+z;
- }
- cout<<endl;
- cout<<"total : "<<total;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement