Answer:
Check the explanation
Explanation:
#include <iostream>
using namespace std;
void hex2dec(string hex_num){
int n = 0;
//Loop through all characters in string
for(int i=0;i<hex_num.size();i++){
//take ith character
char c = hex_num[i];
//Check if c is digit
if(c>='0' && c<='9'){
n = 16*n + (c-48);
}
//Convert c to decimal
else{
n = 16*n + (c-55);
}
}
cout<<hex_num<<" : "<<n<<endl;
}
int main()
{
hex2dec("EF10");
hex2dec("AA");
return 0;
}
The Output can be seen below :
Answer:
How you will be innovative in what you offer
Explanation:
personally I think all 3 but it is what it is
This is how to answer this programming question:
#include <stdio.h>
#include <conio.h>
int main(void)
{
char letterStart;
<span>fflush(stdin);</span>
printf("Input character: ");
scanf("%c", &letterStart);
print("Next Letter: %c", ++letterStart);
getch();
clrscr();
}