Notes
Notes - notes.io |
#include <cstdlib>
#include <time.h>
using namespace std;
int main(int argc, char *argv[])
{
int llotaria[39];
int perdoruesi[39];
bool tgjitha_sakte = true;
bool jo_sakte = true;
int nr_gjetjeve = 0;
srand (time(NULL));
llotaria[20] = rand(1) % 39;
llotaria[25] = rand(2) % 39;
llotaria[30] = rand(3) % 39;
llotaria[35] = rand(4) % 39;
llotaria[39] = rand(5) % 39;
for(int i = 0; i < 39; i++)
{
cout <<"Vendos nje numer nga 0 ne 39: "; cin>>perdoruesi[i];
while (perdoruesi[i]<0 || perdoruesi[i]>39)
{
cout << "Gabim! numrat duhet te jene midis 0-6 "; cin >> perdoruesi[i];
}
}
cout<<endl<<"Nr e llotarise: ";
for(int i = 0; i < 20; i++)
{
if(llotaria[20]){
cout<<"Ju keni fituar 1000 leke !";
}
else {
cout<<" Ju nuk keni fituar ! Provo perseri !"<<endl;
}
cout<<endl<<endl<<" Nr e perdoruesit: ";
for(int i = 0; i < 25; i++)
{
if(llotaria[25]){
cout<<"Urime ju keni fituar 2000 leke !";
}
else {
cout<<" Ju keni fituar 1000 leke ! "<<endl;}
for(int i = 0; i < 30; i++)
{
if(llotaria[30]){
cout<<"Urime ju keni fituar 3000 leke !";
{
else {
cout<<" Ju keni fituar 2000 leke ! "<<endl;}
nr_gjetjeve++;
jo_sakte = false;
}
if(perdoruesi[i] != llotaria[i])
{
tgjitha_sakte = false;
}
}
if(jo_sakte == true)
{
cout<<endl<<endl<<"Na vjen keq! Nuk qelluat gje!."<<endl;
}
if(tgjitha_sakte == true)
{
cout<<endl<<endl<<"Urime ! Fituat cmimin e madh."<<endl;
}
if(nr_gjetjeve != 0)
cout<<endl<<endl<<nr_gjetjeve<<" numer/a qelluar"<<endl;
return 0;
}
Write a note in this area. It's really easy to share with others. Click here ...
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team