Posted by : Unknown
Thursday, December 14, 2017
hallo sobat TI! kali ini saya akan membahas mencari bil ganjil dengan dev c++
langsung saja sobat
#include <iostream>
using namespace std;
int main () {
int l,k,j,i, numb[100], n;
k=0;
for (i=1; i<100; i=i+2){
cout<<i<<” “;
k=k+i;
};
cout<<endl<<k;
j=1;
l=0;
do {
l=l+j;
j=j+2;
}
while (j<100);
cout<<endl<<l;
system (“pause”);
return 0;
}
langsung saja sobat
#include <iostream>
using namespace std;
int main () {
int l,k,j,i, numb[100], n;
k=0;
for (i=1; i<100; i=i+2){
cout<<i<<” “;
k=k+i;
};
cout<<endl<<k;
j=1;
l=0;
do {
l=l+j;
j=j+2;
}
while (j<100);
cout<<endl<<l;
system (“pause”);
return 0;
}
program factorial bilangan dengan dev c++
#include <iostream> using namespace std; int main() { int b,c; cout<<“program oleh suparto”<<endl; cout<<“masukk...