Dyskusje Q&A
#indef
1 Głos
3 odpowiedziHelp with question
0 głosów
10 odpowiedziFooters
0 głosów
1 Odpowiedź
Define a Python function "orangecap(d)" that reads a dictionaryd of this form and identifies the player with the highest total score. Your function should return a pair(playername,topscore) whereplayername is a string, the name of the player with the highest score, andtopscore is an integer, the total score of playername.
-1 Głos
3 odpowiedzi#define vs. const
1 Głos
4 odpowiedziwhat is tjis code problem!
#include <iostream>
using namespace std;
int main()
{
int b = 5;
int arr[b] = {11, 35, 62, 555, 989};
int sum = 0;
for (int x = 0; x < 5; x++) {
sum += arr[x];
}
cout << sum << endl;
return 0;
}
I cannot make an array using int variable in order to define array's element number!?
1 Głos
7 odpowiedziPopularne dzisiaj
Audio adding
1 Votes
What is problem in this code
0 Votes
Stuck in Quize
1 Votes
playground input
0 Votes
C Program
0 Votes
Software developer
0 Votes