Friday, April 10, 2015

1.Describe either in flowchart or algorithm from the steps required to display the multiplication table of a given number (inputted by the user). Convert the flowchart algorithm in to program code of the 4GL or HLL of your choice. The program should used for looping structure to calculate and display the multiplication table.[Exam:- 2058/2061/2068]


#include<stdio.h>
#include<conio.h>
Void main(){          
int i,n;
clrscr();
printf(" \n Input any number: ");
scanf("%d", &n);
for(i=1; i<=10; i++)
{
   printf("\n %2d%2d=%3d", n, i, n*i);
}
getch();
}

No comments:

Post a Comment