Results 1 to 10 of 10
  1. #1

    Default Multiplication table in C


    Unsaon pag himo ug code para multipication table sa C? kanang similar gali sa likod sa notebook.. also if possible explain how the code works ^^
    n00bs kaayo kog programming

  2. #2

    Default Re: Multiplication table in C

    sayon raman kaau na EarlZ.... sa ka sayon maglibog ko og explain hehehe..

    Code:
    int x,y,ans;
    for( x=1; x <= 10; x++) {
      for(y = 1; y <=10; y++) {
       ans = x*y;
       printf("%d \t ",ans);
      }
      printf("\n");
    }

  3. #3

    Default Re: Multiplication table in C

    Lisura ana kong mag explain ta ana diri oi..... pang beginners man gud na siya unya tungod sa kasayon, libog kaau eexplain.....

  4. #4

    Default Re: Multiplication table in C

    study the basics first! it'll be easy..

  5. #5

    Default Re: Multiplication table in C

    waaaaaaa.. i have this program last year.. in my CS 2 subject.. hmm...nalimot nako.. basta nested for loop raman to ako gamit ato..

  6. #6

    Default Re: Multiplication table in C

    Quote Originally Posted by kyuusai
    waaaaaaa.. i have this program last year.. in my CS 2 subject.. hmm...nalimot nako.. basta nested for loop raman to ako gamit ato..
    hehehe...limot kuno siya...

  7. #7

    Default Re: Multiplication table in C

    #include <stdio.h>

    int main(void)
    {
    int x, y;

    for(y = 1; y < 10; y++)
    {
    for(x = 1; x < 10; x++)
    {
    printf("%5d", x * y);
    }
    printf("\n");
    }
    return 0;
    }
    - ang 'y' ka gamit pag traverse top to buttom
    - ang 'x' kay gamit pag traverse from left to right
    - multipy lang nimo sa sulod sa 'x' (inner loop) kay gusto man ta for every value of 'y'
    Â* e-multipy 'x' number of times (lesst than 10 naka indicate so until 9 ra)

  8. #8

    Default Re: Multiplication table in C

    EarlZ para unsa ni? Asa ka skul?

  9. #9

    Default Re: Multiplication table in C

    FOR LOOP function.... lesson ni namo sa AMA ^_^

  10. #10

    Default Re: Multiplication table in C

    nested FOR LOOP indeed

  11.    Advertisement

Similar Threads

 
  1. Replies: 11
    Last Post: 07-07-2014, 12:11 PM
  2. For Rent: TABLES in MANDAUE AREA
    By widow17 in forum Everything Else...
    Replies: 0
    Last Post: 03-27-2011, 01:22 PM
  3. For Sale: Coffee table in pristine condition
    By hannae in forum Household Appliances & Accessories
    Replies: 6
    Last Post: 07-12-2010, 12:40 AM
  4. Replies: 32
    Last Post: 02-25-2010, 11:29 PM
  5. Using Multiple Keywords in Search
    By jasonrey in forum Support Center
    Replies: 6
    Last Post: 04-13-2009, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top