Skip to content

Instantly share code, notes, and snippets.

@mmikhan
Created March 20, 2015 20:13
Show Gist options
  • Save mmikhan/4e2420d3208b2b32be53 to your computer and use it in GitHub Desktop.
Save mmikhan/4e2420d3208b2b32be53 to your computer and use it in GitHub Desktop.
Write a program to output the following multiplication table
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[]) {
int i;
for (i = 1; i <= 10; i++) {
printf("5 x %d = %d\n", i, (5 * i));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment