0 LIKES LikeUnLike
how to write a C program to display table of number??????
Tags: display, Program, table, write
#include <stdio.h> #include <conio.h>
void main() { int n,i; clrscr(); printf ( " Enter the number to print the table : " ); scanf ( "%d", &n ); for ( i=1 ; i<=10 ; i++ ) printf ( " %d X %d = %d \n" , n , i ,n*i ); getch(); }
This program will give you the perfectly formatted output.
To hire a developer , Visit @ http://www.openwavecomp.com/microsoft_technologies.html
Report (0) (0) | 6 years, 6 month(s) ago
what is dangaling pointer ?? and what is static function in C++ ?? what is main advantage of static function in C++ ??
Report (0) (0) | 8 years, 9 month(s) ago
here is a one in c++.
int main(int argc, char *argv[]) { int number; cout << "type number" << endl; cin >> number; for(int i = 1;i<=10;i++){
cout<<number<<"*"<<i<<" = "<<number*i<<endl;
} };
Report (0) (0) | 8 years, 11 month(s) ago
Latest activity: 6 years, 6 month(s) ago. This question has been viewed 1635 times and has 3 answers.