User Profile
Collapse
-
So how do i do it for squaring?? atleast a clear hint.. please -
yes i understand but i want to know the coding.
in times table it would be:
...Code:int main() { //Times table printf("\n"); int i, j, k, l; int result; int result2; printf("Times table to follow\n"); printf("\n"); for(i=0; i<12; i++) //will go through it 12 times starting at 0 { result = i*1;Leave a comment:
-
-
How to square a number with C++
what is the simplest or the plain code for squaring a number?
i.e
in a loop form
for(i=1; i<20; i++) //shows squaring output of 1 up to 20
int x; //
int y; //
1
..
20 // in a loop form, how do i square??
variables..
codes....
printf("??????" );
No activity results to display
Show More
Leave a comment: