Answer:
#include <iostream>
#include <time.h>
#include <string>
using namespace std;
int main(){
srand(time(NULL));
cout<<"Throw dice"<<endl;
int b =0;
int a=0;
a=rand()%6;
b=rand()%6;
for (int i =0;i<1;i++)
{cout<<"dice one: "<<a<<endl;}
for (int i =0;i<1;i++)
{cout<<"dice two: "<<b<<endl;}
if(a>b)
{cout<<"first dice won"<<endl;}
if(b>a)
{cout<<"second dice won"<<endl;}
else{cout<<"they are same"<<endl;
return main();
}
return 0;
}
Explanation:
/*best dice roll game just for you change it as you want but all necessary things are there/*
I agree with the programmers who think object-oriented programming is a superior approach to procedural programming.
<h3>Why is OOP better than procedural programming?</h3>
In terms of Security, Object-oriented programming is said to have more of a secure based than procedural programming, due to the level of abstraction or that is due to data hiding property.
Note that It hinders the access of data to any member functions of the same class and one cannot see a thing like that such as data hiding in the procedural programming framework.
Learn more about object-oriented programming from
brainly.com/question/12342989
#SPJ1
Answer: text import wizard
Explanation:
299,792,458 metres per second
The answer is backlighting