Skip to content
  • General
  • Programming
  • DS & Algo
  • System Design
  • Interview Questions
  • Home
  • YouTube
  • About
  • Contact
Learn to Code and Code to Learn

Learn to Code and Code to Learn

Your Journey to Code Mastery

  • General
    • Setup
  • Programming
    • C++
    • C++-11
    • c++-14
    • Python
  • DS & Algo
    • DS
    • Algo
      • Competitive Programming
        • Leetcode Problems
  • System Design
    • Design Pattern
    • SOLID Principle
  • Interview Questions
    • C++
    • Company Wise
  • Toggle search form

C program to print multiplication table of a given number

Posted on December 17, 2023December 17, 2023 By thecodepathshala 9 Comments on C program to print multiplication table of a given number

Write a C program to input a number from user and print multiplication table of the given number using for loop. How to print multiplication table of a given number in C programming. Logic to print multiplication table of any given number in C program.

Example

Input

Input num: 5

Output

5 * 1  = 5
5 * 2  = 10
5 * 3  = 15
5 * 4  = 20
5 * 5  = 25
5 * 6  = 30
5 * 7  = 35
5 * 8  = 40
5 * 9  = 45
5 * 10 = 50
/**
 * C program to print multiplication table of a number
 */

#include <stdio.h>

int main()
{
    int i, num;

    /* Input a number to print table */
    printf("Enter number to print table: ");
    scanf("%d", &num);

    for(i=1; i<=10; i++)
    {
        printf("%d * %d = %d\n", num, i, (num*i));
    }

    return 0;
}

/*
Output :

Enter number to print table of: 5
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
*/
C Programming, Programming Tags:C Programming

Post navigation

Previous Post: C program to find sum of odd numbers from 1 to n
Next Post: C program to count number of digits in an integer

More Related Articles

C program to print ASCII values of all characters C Programming
Multiset in C++ STL C++
Day-2 / Part – 1 : Basic Input and Output in C Mastering in C programming (Crash Course)
C program to check whether a character is Uppercase or Lowercase C Programming
C program to check whether triangle is valid or not if angles are given C Programming
C program to find perfect numbers between 1 to n C Programming

Comments (9) on “C program to print multiplication table of a given number”

  1. Pingback: Day 3 : Questions list - Learn to Code and Code to Learn
  2. ラブドール says:
    January 19, 2025 at 6:45 am

    Woah! I’m really loving the template/theme of this
    website. It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between usability and visual appeal.

    I must say you’ve done a very good job with this. In addition, the blog loads extremely fast for me on Opera.
    Superb Blog!

    Reply
  3. tiffinynobles8 says:
    January 19, 2025 at 10:54 pm

    Media.

    Reply
  4. tiffinynobles8 says:
    January 23, 2025 at 10:30 am

    CMA chair to be replaced by former Amazon boss

    *

    Government wants regulators to focus on growth

    *

    Finance Minister Reeves says chair needs to share her direction

    (Adds reaction from companies and lawyers in paragraphs 7-8, 14-17)

    By Paul Sandle and Kate Holton

    LONDON, Jan 22 (Reuters) – Britain forced out the chair of its antitrust regulator after he failed to prioritise its growth agenda, replacing him with a former Amazon boss, in a sign the UK’s attempt to rein in big tech could be over.

    Marcus Bokkerink was replaced at the Competition and Markets Authority late on Tuesday by Amazon’s former boss in Britain, Doug Gurr, the government said. Finance minister Rachel Reeves said she needed someone aligned with her “strategic direction”.

    “He recognised it was time for him to move on and make way for somebody who does share the mission and the strategic direction that this government are taking,” she told a Bloomberg event at the World Economic Forum’s annual meeting in Davos.

    Bokkerink’s removal came a day after Donald Trump returned to the White House, vowing to cut regulation on sectors including tech as it races to develop Artificial Intelligence.

    Some criticised the move as a shift to a lighter touch in Britain, where regulators have traditionally been unafraid to take on big companies to protect the interests of smaller firms and consumers.

    “Now is the time to file your mergers with the CMA,” said Tom Smith, competition lawyer at Geradin Partners and a former legal director at the regulator.

    “The government is sending a clear signal that it wants the CMA to go easy on dealmakers.”

    Britain’s Labour government, under pressure to reignite the economy after years of sluggish output, has said it wants regulators to “tear down the barriers hindering businesses” and focus on growth. But some have questioned whether an easing of competition rules would promote growth.

    After he was ousted, Bokkerink said on LinkedIn that markets should not be held back “by a few powerful incumbents setting the rules for everyone else”.

    The CMA’s last clash with a U.S. tech giant was over Microsoft’s $69 billion acquisition of “Call of Duty” maker Activision Blizzard in 2023, and the regulator came off worse.

    It blocked the deal but then tore up its own rule book to approve the case following a furious reaction from Microsoft bosses who lobbied the government at the highest level.

    It did not block a single deal in 2024, and allowed two of Britain’s four mobile networks to merge.

    SUPERCHARGING GROWTH

    After being singled out by Prime Minister Keir Starmer for holding back growth, the CMA said in November that it would focus on “truly problematic mergers” and rethink its approach to allow more deals to go ahead.

    An executive at a major British tech and media company said Bokkerink had been leading the growth charge.

    The person, who asked not to be named, said there was real surprise over the choice of his replacement, raising the question of how much big tech had lobbied the government.

    CMA chief executive Sarah Cardell said Bokkerink had “tirelessly championed consumers, competition and a level playing field for business”.

    Competition lawyer Ian Giles at Norton Rose Fulbright said the CMA’s mantra, echoed by government previously, had been that competition was good for growth and for business – and rules need to be enforced to support this objective.

    The move “suggests that there may be a desire to rein in the CMA’s more interventionist approach,” he said, even at the cost of reduced rule enforcement.

    Business Secretary Jonathan Reynolds said he wanted to see the CMA “supercharging the economy with pro-business decisions that will drive prosperity and growth, putting more money in people’s pockets”.

    He said Gurr, appointed on an interim basis, would bring a “wealth of experience” in the technology sector.

    The change comes as the CMA steps up its scrutiny of Big Tech through its Digital Markets Unit.

    The unit, which gained new powers this month, is tasked with ensuring that tech companies such as Amazon, Google , Meta, Apple and Microsoft, do not abuse their dominant market positions.

    Amazon, under Gurr’s leadership, was investigated by the CMA over its stake in food delivery company Deliveroo. The regulator cleared the investment in 2020.

    The CMA will imminently give its verdict on the cloud computing market, dominated by Amazon, Microsoft and to a lesser extent Google. (Reporting by Paul Sandle and Kate Holton, additional reporting by Muvija M, Editing by Kate Holton and Christina Fincher)

    Reply
  5. tiffinynobles8 says:
    January 27, 2025 at 2:07 am

    The next generation of artificial intelligence is expected to replace a human: the personal assistant you probably cannot afford to hire. 

    ‘AI agents’ capable of completing a complex series of tasks after just one command are emerging as a top tech trend for 2025, with the backing of Samsung and Google in an upcoming range of smartphones.

    Industry experts and analysts have welcomed their arrival and the convenience they could bring, saying the rapid AI evolution will spark fierce competition among device makers.

    But they also warn the use of digital assistants could have serious repercussions for app developers and while users may trust AI to book and schedule a haircut, they should carefully consider whether to rely on them to make bigger financial commitments without supervision.

    AI agents had been widely touted as the next big development in the technology, following the arrival of generative AI chatbots in late 2022. 

    Samsung underlined the tech’s potential at a launch in San Jose, California, this week, where it made AI agents the central focus of its flagship Galaxy S25 phones.

    The company revealed plans to replace its voice assistant Bixby with Google’s Gemini in the devices, and to allow the AI agent to manipulate Google, Samsung and third-party apps to follow user’s wishes. 

    After asking this phone a question, an AI agent could perform an internet search for vegan-friendly restaurants in central Sydney, email its top three findings to your friend, and add a dinner date to your calendar, for example. 

    The development required close collaboration between the phone maker, Google Android and Gemini engineering teams, Samsung Electronics executive vice-president Sally Hyesoon Jeong says, and AI to be baked into the phone’s operating system. 

    “Internally, we had a plan to make this a big jump,” she told AAP.

    “If you consider from the planning stages to the engineering, it took about three years.”

    Previous voice assistants have been very “rule-based,” Ms Hyesoon Jeong says, and unable to understand complex inquiries or a chain of requests. 

    The development of large language models enabled AI agents to better understand spoken requests and the intent behind them, she says, even if a person stumbles mid-sentence or is not clear.

    “You could say to the agent, ‘find this video on YouTube and remind me of it later’ or ‘store this and put it into my calendar’,” she says.

    “If humans speak to it in whichever manner, it is able to understand intentions.”

    The change in how to operate a smartphone represents a “paradigm shift,” Ms Hyesoon Jeong says, similar to the move from feature phones to smartphones that introduced touchscreens and apps.

    The change could have a significant impact on the way people use their phones, with market research firm Gartner predicting AI agents will encourage people to stop opening some apps as it is done on their behalf. 

    Individual app use is expected to drop by 25 per cent in 2027 as people talk to their phones, Gartner senior principal Emily Weiss says, and app developers and marketers need to prepare.

    “(Chief marketing officers) should begin scenario-planning for the impacts of decreased mobile app usage,” she says. 

    Consumers are likely to see more benefits than downsides from the arrival of AI agents, UNSW AI Institute chief scientist Toby Walsh says, as the technology might finally capture what they mean when they ask a question. 

    If executed correctly, he says, AI agents could take the place of personal assistants that are typically the domain of the ultra wealthy. 

    “You and I can’t afford a personal assistant but we could have a personal agent and, just as (rich people are) able to give authority to their assistant for small things like booking a haircut, you could give a personal agent that ability,” he says.

    “But you would not give it the ability to book your next holiday – you’d probably want to check before you give them that authority.”

    Placing restrictions on what the technology can do will be important, Prof Walsh says, to avoid repercussions similar to “giving your credit card to a young family member”. 

    Legal restrictions, like mandatory guardrails currently being considered by the federal government, could also play a role in the use of AI agents as some consumers may not realise how their data is being used by different companies. 

    “We’ll be interacting with agents without realising they’re AI, not human,” he says.

    “We should be very mindful about the terms and conditions and exactly what’s happening to our data and whether that’s a fair exchange.”

    The world’s two leading smartphone makers have made efforts to boost AI transparency, with Apple prompting users before passing queries to OpenAI’s ChatGPT and Samsung pledging to perform some tasks on device and to encrypt personal data. 

    Communication about how a consumer’s data is stored and used does need to improve, Samsung Australia mobile vice-president Eric Chou says, and its upcoming AI agent is designed to be more transparent. 

    “There are still a group of people in Australia who have concerns around AI usage and privacy and security,” he says.

    “None of that (data) will ever be used for training an AI model and none of the user behaviours will ever be passed on for any ad-selling.”

    The focus on privacy potentially delayed the rollout of Apple Intelligence until late last year, Telsyte managing director Foad Fadaghi says, but the arrival of serious AI agents from Samsung could push the market further faster. 

    “It’s likely that we will see Apple respond,” he says. 

    “Apple is lagging and while it might not cause immediate disruption to their base, it’s clearly one to watch as it has that potential.”

    AAP travelled to San Jose with the assistance of Samsung. 

    Reply
  6. tiffinynobles8 says:
    January 30, 2025 at 10:13 am

    website website link.?

    Reply
  7. tiffinynobles8 says:
    February 10, 2025 at 9:02 pm

    The ARM architecture is often considered more energy-efficient and better suited for mobile devices, while x86 is typically more powerful and commonly used in d
    Read more

    Cloud Computing

    How much faster is quantum computing compared to traditional computing methods?

    Asked by Laurence Kemmer

    Quantum computing is significantly faster than traditional computing methods because it can perform complex calculations at a much faster rate due to its abilit
    Read more

    Cloud Computing

    How does the speed of quantum computing compare to classical computing?

    Asked by Grayce Weimann

    Quantum computing is faster than classical computing for certain tasks due to its ability to process information in parallel and utilize quantum properties like
    Read more

    Cloud Computing

    How does distributed computing differ from parallel computing in terms of their respective approaches to processing tasks across multiple nodes or processors?

    Asked by Jarred Krajcik

    Distributed computing involves breaking down tasks and distributing them across multiple nodes or processors that work independently on different parts of the t
    Read more

    Cloud Computing

    How do parallel computing and distributed computing differ in terms of their approach to processing tasks efficiently?

    Asked by Fatima Ziemann

    Parallel computing involves breaking down a task into smaller parts and processing them simultaneously on multiple processors within the same system, while dist
    Read more

    Cloud Computing

    How do you use cloud storage?

    Asked by Wiki User

    Cloud storage is used to store, manage, and access data over the internet without relying on physical storage devices. Individuals and businesses utilize cloud
    Read more

    Internet

    +2

    What is Platform as a Service PaaS in cloud computing?

    Asked by Wiki User

    Computers

    +3

    How does cloud computing work?

    Asked by Wiki User

    Cloud computing allows users to access and store data and applications over the internet instead of on a local computer. It provides on-demand computing resourc
    Read more

    Clouds

    +3

    What is a plain definition of cloud computing?

    Asked by Wiki User

    Cloud computing refers to the delivery of computing services like servers, storage, databases, networking, software, and analytics over the internet (the cloud)
    Read more

    Cloud Computing

    Where can I find more about cloud computing and what it is?

    Asked by Wiki User

    Cloud services offer virtual storage space for your data and music and movies. website offers a cloud service and reading about this service will help yo
    Read more

    Cloud Computing

    What is a good provider for cloud computing?

    Asked by Wiki User

    Cloud Services Computing (AWS & Azure) good providers. Retunes it Media Best Cloud-Services company in Hyderabad Accelerate your development whether it be
    Read more

    Cloud Computing

    What is cloud computing environment?

    Asked by Wiki User

    Computing Environment is a collection of computers / machines, software, and networks that support the processing and exchange of electronic information meant t
    Read more

    Cloud Computing

    Why is cloud computing becoming so popular?

    Asked by Wiki User

    Cloud Storage service is just the matter of accessing and storing your data online. In my thinking it is so popular because it is Cost Efficiency, Backup and Re
    Read more

    Computer Networking

    +2

    Definition of decryption?

    Asked by Wiki User

    decryption is the process of extracting the original information from the encrypted data.

    Reply
  8. https://Classifieds.Ocala-News.com/author/yjijustin87 says:
    April 18, 2025 at 12:32 am

    With havin so much content do you ever run into any issues of plagorism or copyright infringement?
    My site has a lot of unique content I’ve either created myself
    or outsourced but it appears a lot of it is popping
    it up all over the web without my authorization. Do you know any techniques to help prevent content from being ripped
    off? I’d genuinely appreciate it. https://Classifieds.Ocala-News.com/author/yjijustin87

    Reply
  9. https://Classifieds.Ocala-News.com/author/yjijustin87 says:
    April 18, 2025 at 12:32 am

    With havin so much content do you ever run into any issues of plagorism or copyright infringement?

    My site has a lot of unique content I’ve either created myself
    or outsourced but it appears a lot of it is popping it up all over the web without my authorization. Do you know any techniques
    to help prevent content from being ripped off? I’d genuinely appreciate it. https://Classifieds.Ocala-News.com/author/yjijustin87

    Reply

Leave a Reply to tiffinynobles8 Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • August 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • September 2023
  • February 2023
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021

Categories

  • Algo
  • Array in C
  • C Programming
  • C++
  • C++
  • Company Wise
  • Competitive Programming
  • Design Pattern
  • DS
  • DS & Algo
  • Fast and Slow Pointer
  • fixed size sliding window
  • General
  • GFG
  • GFG PTOD
  • Interview Questions
  • Leetcode Problems
  • Leetcode PTOD
  • Leetcode Top Interview 150
  • LLD
  • Low-level design
  • Mastering in C programming (Crash Course)
  • Programming
  • Roadmap
  • Setup
  • Setup
  • sliding window
  • SOLID Principle
  • STL
  • string in c
  • System Design
  • Top X

Tags

algorithm array bactracking basic c++ coding interview C Programming Crash Course data structure and algorithm design pattern dsa easy Fixed size sliding window fubctions GFD gfg GFG PTOD hard jump game LC PTOD leetcode Leetcode PTOD Leetcode Top Interview 150 LLD loop loops Low-level design Mastering C Programming in 15 Days matrix medium recursion rotate array searching&sorting sliding window solid STL string string in c sunction in c system design Template in C++ Top Top 20 coding patterns to master MAANG Interview Top interview 150

Database Sharding #interview #shorts #ytshorts #apple #google #facebook #meta #amazon #softwareengineer 

what is database Sharding 
when database Sharding
Database Sharding #interview #shorts #ytshorts #apple #google #facebook #meta #amazon #software
Use of CDN | what is CDN #cdn #systemdesign #interview #shorts #google #apple #meta #amazon #adobe

content delivery network 
what is cdn
what is the use of cdn
Use of CDN | what is CDN #cdn #systemdesign #interview #shorts #google #apple #meta #amazon #adobe
Horizontal vs Vertical Scaling #systemdesign #google #microsoft #interview #shorts #apple #FAANG

Tags:

horizontal vs vertical scaling, vertical vs horizontal scaling, horizontal scaling vs vertical scaling, horizontal vs vertical scaling pros and cons, vertical scaling vs horizontal scaling, horizontal scaling vs vertical scaling in aws, horizontal vs vertical scaling in cloud computing, horizontal and vertical scaling, horizontal vs vertical, horizontal and vertical scaling in cloud computing, difference between horizontal and vertical scaling, diagonal scaling vs horizontal scaling


#Scalability #HorizontalScaling #VerticalScaling #SystemArchitecture #Computing #technologynews #HorizontalScaling
#VerticalScaling
#Scalability
#ScaleOut
#ScaleUp
#SystemScaling
#DistributedSystems
#InfrastructureScaling
#CloudScaling
#ResourceScaling
#ScaleOut
#DistributedSystems
#LoadBalancing
#CloudScaling
#Scalability
#HorizontalScalingVsVerticalScaling
#HorizontalScalingExplained
#Elasticity
#DistributedComputing
#SystemArchitecture
#HighAvailability
#FaultTolerance
#ScalingStrategies
#InfrastructureScaling
Horizontal vs Vertical Scaling #systemdesign #google #microsoft #interview #shorts #apple #FAANG
😇why Instagram load fast❓⁉️ #Instagram #interview #apple #iit #microsoft
😇why Instagram load fast❓⁉️ #Instagram #interview #apple #iit #microsoft
Load balancer in 30 second #shorts #youtubeshorts #interview #hld #systemdesign #iit #google #apple
Real life example | Abstract factory | Design pattern #designpatterns #lowleveldesign #interview
Advantage of Abstract factory design pattern #interview #lld #google #apple #meta #facebook
Abstract factory design pattern | what? Why? How? #interview #lld #google #apple #meta #facebook
Master Abstract Factory Design Pattern in C++ | Real-World Examples & Code Explanation

In this video, we break down the Abstract Factory Design Pattern in C++ step-by-step. You’ll learn:
✅ What is Abstract Factory Pattern
✅ When & why to use it in C++
✅ UML diagram explanation
✅ Real-world examples for better understanding
✅ Complete C++ code implementation

Whether you’re preparing for FAANG interviews, learning Design Patterns, or improving your Object-Oriented Programming skills, this tutorial will help you write clean, scalable, and maintainable C++ code.

Keywords:
abstract factory c++, abstract factory design pattern c++, abstract factory design pattern example, creational design patterns in c++, design patterns in c++ with examples, faang interview preparation, c++ oops concepts
abstract factory pattern, c programming, design patterns in c, object oriented design, system architecture, software design, c language tutorial, creational patterns, software engineering, c programming tutorial, factory method pattern, design principles, object creation, software development, programming concepts
master abstract factory design pattern in c,
abstract factory design pattern php,
abstract factory design pattern c#,
abstract factory design pattern vs factory pattern,
abstract factory design pattern js,
abstract factory design pattern c++,
abstract factory design pattern example,
factory and abstract factory design pattern in java,
factory method design pattern php,
abstract factory and factory design pattern,
factory pattern and abstract factory pattern,
abstract factory design pattern example c#,
java abstract factory design pattern,
abstract factory method design pattern,
abstract factory design pattern java,
abstract factory design pattern example java,
abstract factory design pattern typescript,
abstract factory design pattern in java,
abstract factory design pattern in c#,
abstract factory design patterns in java,
factory pattern design pattern,
abstract factory design pattern python

#Cpp #DesignPatterns #AbstractFactory #Programming #codewithme 
#masterabstractfactorydesignpatterninc++ #abstractfactorydesignpatterninc++ #masterabstractfactorydesignpatterninc++hindi #masterabstractfactorydesignpatterninc++and #masterabstractfactorydesignpatterninc++andc
Master Abstract Factory Design Pattern in C++ | Real-World Examples & Code Explanation
Load More... Subscribe

Recent Posts

  • Palindrome Linked List
  • Find the Duplicate Number
  • Remove Nth Node From End of List
  • Linked List Cycle II
  • Decode the string | GFG PTOD | 01 Mar| Medium level | STACK

    Recent Comments

    1. reebjnhzey on GFG PTOD | 23 Feb | Next Greater Element | Medium level | STACK
    2. 서울여성전용마사지 on C program to check Leap Year
    3. http://boyarka-inform.com/ on C program to enter basic salary and calculate gross salary of an employee
    4. Denny on C program to enter basic salary and calculate gross salary of an employee
    5. Cabanon Eco on C program to check Leap Year

    Copyright © 2025 Learn to Code and Code to Learn.

    Powered by PressBook Blog WordPress theme