• Free Template
  • Programming
    • Coding Guides
    • Articles
  • Tips & Tricks
  • Technology
  • What's Hot

c Examples

  • Introduction
  • Hello World
  • Calculation
  • Greatest Number
  • Armstrong Number
  • Multiplication Table
  • Perfect Number
  • Prime Number
  • Even Odd
  • Factorial
  • Fibonacci Series
  • Palindrome Number
  • Palindrome String
  • Temperature Converter
  • Recursive Factorial
  • Numeric Pyramid
  • Decimal to Binary
  • Decimal to Octal
  • Decimal to Hex
  • Binary to Decimal
  • Array Sum
  • Two Array Sum
  • LCM
  • GCD
  • Leap Year
  • Matrix Addition
  • Matrix Multiplication
  • Swapping
  • Binary Search
  • Linear Search
  • Bubble Sort
  • Insertion Sort
  • Selection Sort
  • Quick Sort
  • Merge Sort
  • Heap Sort
  • Write File
  • Read File
  • Copy File
  • Delete File
  • Singly Linked list
  • Doubly Linked list
  • Stack
  • Queue
  • Circular Queue
  • Binary Tree
  • Run Linux Command
  • Change Case

Apr 16, 2020

Multiplication Table

C Programming 657 views
#include<stdio.h>

int main() {
	int i, ans;
	printf("Four Times Table\n");

	/* loop the process using "For loop" */
	for(i=1; i<=10; i++) {
		ans = 4 * i;

		/* Print two variable at the same time */
		printf("4 X %d = %d\n",i,ans);
	}
	return 0;
}



/* Output */
Four Times Table
4 x 1 = 4
4 x 2 = 8
4 x 3 = 12
4 x 4 = 16
4 x 5 = 20
4 x 6 = 24
4 x 7 = 28
4 x 8 = 32
4 x 9 = 36
4 x 10 = 40
Tags:
cc languagec programmingc coding for multiplication tablefour times table on cgeekboots tutorialgeekboots c programmingc language for times table
Author: Geekboots
Share On
Geekboots © 2022 About UsContact UsTermsCookie PolicyPrivacySubmit Article