I want my numbers to Be aligned but how do I do that Final E
Solution
1) you can hard code it, as in simply put enough spaces after \"Final exam weight \" (like this) so that the input cursor automatcally starts from their and the output appears to be aligned.
2) or you can use the goto function to point the cursor to a certain fixed co-ordinate (x,y) with x fixed so that they are aligned like this ---
--------
#include <iostream>
#include <cstdio>
#include <conio>
using namespace std;
int main() {
int a,b,c;
gotoxy(10,10);
printf(\"enter final weight:\");
gotoxy(50,10);
scanf(\"%d\",&a);
gotoxy(10,20);
printf(\"enter final points earned:\");
gotoxy(50,20);
scanf(\"%d\",&b);
gotoxy(10,30);
printf(\"enter exm totl points:\");
gotoxy(50,30);
scanf(\"%d\",&c);
return 0;
}
---------------
** if you don\'t have turbo c compiler use this for the gotoxy function
