User Profile

Collapse

Profile Sidebar

Collapse
shop
shop
Last Activity: May 10 '10, 05:11 PM
Joined: May 10 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shop
    replied to How to square a number with C++
    in C
    So how do i do it for squaring?? atleast a clear hint.. please
    See more | Go to post

    Leave a comment:


  • shop
    replied to How to square a number with C++
    in C
    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;
    ...
    See more | Go to post
    Last edited by Banfa; May 10 '10, 05:52 PM. Reason: Please use [code]...[/code] round code you post

    Leave a comment:


  • shop
    replied to How to square a number with C++
    in C
    i would square it by its self..
    See more | Go to post

    Leave a comment:


  • shop
    started a topic How to square a number with C++
    in C

    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("??????" );
    See more | Go to post
No activity results to display
Show More
Working...