// programos pavadinimas
#include <fcntl.h>
#include <io.h>
#include <iostream>
using namespace std;
int main ()
{
int x1, x2, a, b, c, s;
cout << "iveskite trizenkli skaiciu" ; cin >> x1;
cout <<"iveskite antra trizenkli skaiciu" ; cin >> x2;
while (x1<=x2)
{
a = x1/100;
b = x1/10 -a * 10;
c = x1 - a * 100 - b * 10;
s = a + b + c;
if( s>=8) {cout << "" << x1; cout << "pergale " << endl;}
else if( s > 5 && s <= 8) {cout << "" << x1; cout << "pasistenk " << endl;}
else if (s >= 5) {cout<< "" <<x1; cout << "Nenusimink" << endl;}
x1 = x1+1;
}
return 0;
}
cia 4
Anonimas prieš 4590 d.
// programos pavadinimas
#include <fcntl.h>
#include <io.h>
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
int t;
cout << "iki pamokos pabaigos liko" ;cin >> t;
if (t >= 30)
cout << "liko dar labai daug laiko";
else if ((t<30) && (t >= 15))
cout << "liko dar nemazai laiko";
else if ((15 > t) && (t >= 7 ))
cout << "liko nedaug laiko";
else if (t < 7)
cout << "Pamoka baigesi";
return 0;
}
Juokauju.
Hitleris buvo blogas
#include <iostream>
using namespace std;
int main()
{
while(true)
{
cout<<"Tu adaptuotas"<<endl;
}
return 0;
}
#include <fcntl.h>
#include <io.h>
#include <iostream>
using namespace std;
int main ()
{
int x1, x2, a, b, c, s;
cout << "iveskite trizenkli skaiciu" ; cin >> x1;
cout <<"iveskite antra trizenkli skaiciu" ; cin >> x2;
while (x1<=x2)
{
a = x1/100;
b = x1/10 -a * 10;
c = x1 - a * 100 - b * 10;
s = a + b + c;
if( s>=8) {cout << "" << x1; cout << "pergale " << endl;}
else if( s > 5 && s <= 8) {cout << "" << x1; cout << "pasistenk " << endl;}
else if (s >= 5) {cout<< "" <<x1; cout << "Nenusimink" << endl;}
x1 = x1+1;
}
return 0;
}
cia 4
#include <fcntl.h>
#include <io.h>
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
int t;
cout << "iki pamokos pabaigos liko" ;cin >> t;
if (t >= 30)
cout << "liko dar labai daug laiko";
else if ((t<30) && (t >= 15))
cout << "liko dar nemazai laiko";
else if ((15 > t) && (t >= 7 ))
cout << "liko nedaug laiko";
else if (t < 7)
cout << "Pamoka baigesi";
return 0;
}