Question:

how to write a C program to display table of number??????

by Guest22372681  |  8 years, 12 month(s) ago

0 LIKES UnLike

how to write a C program to display table of number??????

 Tags: display, Program, table, write

   Report

3 ANSWERS

  1. Guest28063823

    #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
     

  2. Guest22868090

    what is dangaling pointer ?? and what is static function in C++ ?? what is main advantage of static function in C++ ??

  3. fahad latif

    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; 

    }


    };

     

     

Question Stats

Latest activity: 6 years, 6 month(s) ago.
This question has been viewed 1635 times and has 3 answers.

2 People are following this question

afshaiqbalajaytiwari

BECOME A GUIDE

Share your knowledge and help people by answering questions.