Witam,
W moim programie jest problem z if, gdyż program nie używa 1 else if. Załączam kod źródłowy.
#include <iostream>
using namespace std;
int main(){
int i;
int ilosc;
cin>>ilosc;
system("CLS");
int tablica[ilosc];
int hurra=1;
int super=1;
int wiwat=1;
for(i=1; i<ilosc; i++){
tablica[i] = i;
if(hurra==7){
cout<<"Hurra!"<< endl;
hurra=1;
} else if(super==11){
cout<<"Super!"<< endl;
super=1;
} else if(wiwat==77){
cout<<"Wiwat!"<<endl;
wiwat=1;
} else {
cout<<i << endl;
}
hurra++;
super++;
wiwat++;
}
cout<<i<<endl;
return 0;
}