Originally Posted by
sean
I'm not entirely sure what you're asking - are you talking about the best way to do the alignment? Or are you not sure how to input and output numbers?
It's probably best if you just make and attempt to meet the minimum requirements of the problem yourself. Post your source code, and if there's a way to improve it we can point it out to you. If you get stuck at a certain spot while you're trying, post your problem and we'll help you with that.
Sorry for the vaugness, heres the code I have so far:
Code:
#include<stdio.h>
int main()
{
int num1, num2,answer;
printf("Enter the number 1 : ");
scanf(&num1);
printf("Enter the number 2 : ");
scanf(&num2);
answer = num1 * num2;
printf("The answer is %d", answer);
//output
printf(%d\nX,num1);
printf(%d\n-----------,num2);
printf(xxxxxxxxxxxxxxxx);
printf(xxxxxxxxxxxxxxxx);
printf(%d,answer)
return 1;
}
So at the output, i was wondering how i would get the:
--------
150
+2000
--------
included. I dont really have any idea on how to go about that. I hope this makes sense, sorry for the confusion =(