Results 1 to 3 of 3

Thread: Residue classes modulo

  1. #1
    dhsony is offline Junior Member
    Last Online
    31st October 2016 @ 09:48 AM
    Join Date
    16 Sep 2015
    Gender
    Male
    Posts
    3
    Threads
    2
    Credits
    0
    Thanked
    0

    Angry Residue classes modulo

    Suppose you wanted to print a multiplication table of the sort your instructor was forced to memorize in 2nd grade (you’ve seen the picture!).Each row and column of the table is tagged with a numeric heading, and each entry in the table is the product of the two headings For example, if the user enters 10, the following table should be displayed by your program.

    1 2 3 4 5 6 7 8 9 10
    +----------------------------------------
    1 | 1 2 3 4 5 6 7 8 9 10
    2 | 2 4 6 8 10 12 14 16 18 20
    3 | 3 6 9 12 15 18 21 24 27 30
    4 | 4 8 12 16 20 24 28 32 36 40
    5 | 5 10 15 20 25 30 35 40 45 50
    6 | 6 12 18 24 30 36 42 48 54 60
    7 | 7 14 21 28 35 42 49 56 63 70
    8 | 8 16 24 32 40 48 56 64 72 80
    9 | 9 18 27 36 45 54 63 72 81 90
    10 | 10 20 30 40 50 60 70 80 90 100

  2. #2
    Asif_Raz's Avatar
    Asif_Raz is offline Senior Member+
    Last Online
    13th September 2018 @ 08:59 PM
    Join Date
    15 May 2014
    Age
    30
    Gender
    Male
    Posts
    435
    Threads
    27
    Credits
    606
    Thanked
    31

    Default

    is k liye 2 loop chalo for loop
    1 se 10 tak .aur first outer loop ko inner loop k sath multiply krdo.output aa jae gi ...

  3. #3
    Asif_Raz's Avatar
    Asif_Raz is offline Senior Member+
    Last Online
    13th September 2018 @ 08:59 PM
    Join Date
    15 May 2014
    Age
    30
    Gender
    Male
    Posts
    435
    Threads
    27
    Credits
    606
    Thanked
    31

    Default

    simple....

Similar Threads

  1. Replies: 6
    Last Post: 9th February 2016, 10:11 PM
  2. Asp.net classes
    By ISHTIAQ2 in forum Ask an Expert
    Replies: 3
    Last Post: 25th November 2013, 06:17 PM
  3. C++ Classes
    By Ahmad Ghaffar in forum Ask an Expert
    Replies: 2
    Last Post: 5th June 2011, 01:39 PM
  4. about classes
    By ganokotha in forum Introduction
    Replies: 7
    Last Post: 17th January 2010, 03:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •