Answer:
Explanation:
def octal_to_string(octal):
result = ''
value_letters = [(4, 'r'), (2, 'w'), (1, 'x')]
for c in [int(n) for n in str(octal)]:
for value, letter in value_letters:
if c >= value:
result += letter
c -= value
else:
result += '-'
return result
print(octal_to_string(755))
print(octal_to_string(644))
print(octal_to_string(750))
print(octal_to_string(600))
**************************************************
#include <iostream>
#include <string>
using namespace std;
int main() {
string userInput;
cout << "Enter word" << endl;
cin >> userInput;
cout << "you entered" << endl;
cout << userInput;
return 0;
}
I believe the correct answer from the choices listed above is option C. A credit limit is the maximum amount you can charge each billing cycle. <span>The </span>credit limit<span> on your credit card is the maximum balance your credit card issuer allows. Hope this answers the question.</span>
<u>C program for finding the largest Value in array of integers</u>
#include <stdio.h>
/*Function that returns the largest value stored in an array-of-int*/
int max(int array[], int m)
{
int i;
/* Initializing variable maximum with array[0]*/
int maximum = array[0];
/* Traversing array elements from 2 to last and comparing it with variable maximum*/
for (i = 1; i < m; i++)
if (array[i] > maximum)
maximum = array[i];
return maximum; //returning maximum element of array
}
//driver function
int main()
{
int array[] = {5, 78, 23, 65, 9}; //Input array
int m = sizeof(array)/sizeof(array[0]); //finding the length of array
printf("Largest in given array is %d", max(array, m));/*function calling and printing maximum element of array */
return 0;
}
<u>Output:
</u>
Largest in given array is 78