-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
`
#include <iostream>
--
| #include<unistd.h>
| using namespace std;
|
| int main(int argc, const char * argv[]) {
| // insert code here...
|
| int n,sum;
|
| sum=0;
| cout<<"escribir un numero"<<endl;
|
| while (sum<100) {
| if (sum>0) {
| cout<<"falta completar siga escribiendo"<<endl;
| }
| cin>>n;
| sum=sum+n;
| cout<<"suma total es:\n"<<sum<<endl;
|
| }
| cout<<"la suma total es"<<sum<<endl;
| if (sum>=100)
| {
| cout<<"you have done"<<endl;
| }
| return 0;
|
| }
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels