HelpMeOutAlways: For Loop
Showing posts with label For Loop. Show all posts
Showing posts with label For Loop. Show all posts

Tuesday, May 29, 2018

C Multiplication Program Input from User
May 29, 20180 Comments
Source Code

// Simple multiplication Program
#include<stdio.h>
main()
{
int n,i;
printf("Enter any Integer Num:");
scanf("%d",&n);
for(i=1;i<=10;i++)
{

printf("%d * %d= %d\n",n,i,n*i);

}

return 0;

}

Output of Program
Output of c multiplication program



Reading Time:
C Multiplication Table Starting and Ending Point
May 29, 20180 Comments
//Multiplication Table oF desite

#include <stdio.h>
int main()
{
    int n, i,start, range;

    printf("Enter an integer: ");
    scanf("%d",&n);

    printf("Enter the Start: ");
    scanf("%d", &start);
    printf("Enter the range: ");
    scanf("%d", &range);

    for(i= start; i <= range; ++i)
    {
        printf("%d * %d = %d \n", n, i, n*i);
    }

    return 0;
}

Output Of Program
output of c table program

Reading Time:

@way2themes