TechyQuest.xyz - Learn With Coding Examples

Learn programming with the examples of programs. Techyquest provides lot of programming examples to learn programming and logic.

Recents in Beach

LightBlog

Breaking

Wednesday, 22 January 2020

C Program to Print The Table of Given Number


C program to print the table of any number inputted by the user.

Need To Learn

  1. Operators
  2. For Loop
  3. I/O Functions







#include <stdio.h>

int main()
{
    int n,i;
    printf("Enter the number to print the table:\n");
    scanf("%d",&n);
    for(i=1;i<=10;i++){
        printf("%d X %d = %d\n",n,i,n*i);
    }

    return 0;
}

No comments:

Post a Comment