Thursday, August 28, 2014

program which displays the Table of two


Code

#include<stdio.h>
int main()
{
printf ("2 * 1 = 2\n");
printf ("2 * 2 = 4\n");
printf ("2 * 3 = 6\n");
printf ("2 * 4 = 8\n");
printf ("2 * 5 = 10\n");
printf ("2 * 6 = 12\n");
printf ("2 * 7 = 14\n");
printf ("2 * 8 = 16\n");
printf ("2 * 9 = 18\n");
printf ("2 * 10 = 20\n");

getch ();
return 0;
}

Output

C Language table of 2

No comments :

Post a Comment

Note: Only a member of this blog may post a comment.

Copyright 2017. All Rights Reserved. Privacy Policy / Terms And Conditions / Sitemap / Contact