Are these just regular numbers, such as 1, 2 ,3, etc.? Or are they something different? I need to make a code that accepts two long integers, then raises one to the power of the other.
Edit:
I figured out something like this
Code:#include <stdio.h> #include <math.h> void main(void) { int a,b; printf("Please Enter a Number.\t"); scanf("%d", &a); printf("\nPlease Enter a Second Number.\t"); scanf("%d", &b); pow(a, b); system("Pause"); }
but I need it to display the number. How would I do that? Also, I need to ask for someone's name, and then display it. I know it has something to do with strings, but I am not sure. Any help?



LinkBack URL
About LinkBacks


