Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

here i will be happy if you will fix the simple mistakes on this code : (i can fix the mistakes too but i think if we will do it at here, it willbe more absolute) #include #include using namespace std; int main(void) {//1 bool ucuncudongu=true; // ucuncudongu means thirdloop int ilkadim=1; //firststep char dizituru; //arraytype bool yenidenyap=true; //doagain string yenidenyapmak; //todoagain bool ikincidongu=true; //second loop int X; //kaç basamak hesaplanacaksa, how many digit there will be int artmasayisi; //rise value int katsayi; //factor do {//2 system("CLS"); cou

OpenStudy (anonymous):

#include <cstdlib> #include <iostream> using namespace std; int main(void) {//1 bool ucuncudongu=true; // ucuncudongu means thirdloop int ilkadim=1; //firststep char dizituru; //arraytype bool yenidenyap=true; //doagain string yenidenyapmak; //todoagain bool ikincidongu=true; //second loop int X; //kaç basamak hesaplanacaksa, how many digit there will be int artmasayisi; //rise value int katsayi; //factor do {//2 system("CLS"); cout<<"hangi tür dizinin ilk X basamağını hesaplayacaksınız? (aritmetik(a), geometrik(g))" //which type of arrays X digit will be written? <<endl; cin>>dizituru; cout<<"Dizinin ilk kaç basamağı hesaplanacak?" //how many steps of the array will be written? <<endl; cin>>X; do {// 4 if (dizituru=='a')//if its aritmetic { cout<<"Her adımda ne kadar artsın?" //how many it should rise <<endl; cin>>artmasayisi; for(int i = 0; i>X; i++) {//5 ilkadim+=artmasayisi; cout<<ilkadim <<endl; }//5 } else if (dizituru=='g') //if its geotmetric { cout<<"Kaç kat artsın?" //factor?? <<endl; cin>>katsayi; for(int i=0;i==X;i++) {//6 ilkadim*=katsayi; cout<<ilkadim <<endl; }//6 } else { cout<<"Girdiğiniz değer geçersiz."; //the value you have entered is unaviable ucuncudongu=false; } ucuncudongu=false; }while(ucuncudongu==true); //4 do {//8 cout<<"Baştan başlamak ister misiniz?"<<"(evet yada hayir)" // would you like to start from the beggining ? (yes or no) <<endl; cin>>yenidenyapmak; if(yenidenyapmak=="evet") { yenidenyap=true; } else if (yenidenyapmak=="hayir") { yenidenyap=false; } else { cout<<"Girdiğiniz yazi uygun değil, lütfen baştan almak için evet ya da hayir yazın." //the value you entered is unavaible plese write yes or no to restart... <<endl; ikincidongu=true;//ikinci döngü } }while(yenidenyap==true); }while(yenidenyap==true); //42 system("PAUSE"); }//1 //here its not a complated code,(i mean i did nto fix the simple mistakes yet :)

OpenStudy (anonymous):

OpenStudy (anonymous):

Use different channel or sites,i don't find good programmers who can comment on your code here.But it is good try.

OpenStudy (anonymous):

well there is some problems about my loops ^^ some loops ends in wrong places or have wrong conditions...

OpenStudy (anonymous):

I don't touch your code,since its non english variable which according to me not encouraged in programming world.

OpenStudy (anonymous):

well there is explain of the turkish words near of them :) in // ^^

OpenStudy (anonymous):

but hard to keep track in mind.i am not computer to load in memory and use it as global variables :D

OpenStudy (anonymous):

well okay ^^

OpenStudy (anonymous):

Don't think I am discouraging,try sticking to english language.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!