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