Showing posts with label cppdroid. Show all posts
Showing posts with label cppdroid. Show all posts

[C++ Program] Table of Number entered by user! (while Loop)

Leave a Comment
Write a program to accept number from user and display table of that number.

Following program is created for old compiler. If you are using new compiler then you need change few part of header file.

Program:

#include<iostream.h>

#include<conio.h>



void main()

{

    int num,multi,i=1;

    clrscr();

   

    cout<<"Enter Number=";

    cin>>num;

   

    while(i<=10)

    {

        multi=num*i;

        cout<<"\n"<<num<<"*"<<i<<"="<<multi;

        i++;

    }

    getch();

}

Output:

Enter Number=7

7*1=7
7*2=14
7*3=21
7*4=28
7*5=35
7*6=42
7*7=49
7*8=56
7*9=63
7*10=70
Read More

[C++ Program] Table of Number entered by user! (For Loop)

Leave a Comment
Write a program to accept number from user and display table of that number.

Following program is created for old compiler. If you are using new compiler then you need change few part of header file.

Program:

#include<iostream.h>

#include<conio.h>



void main()

{

    int num,multi,i;

    clrscr();

   

    cout<<"Enter Number=";

    cin>>num;

   

    for(i=1;i<=10;i++)

    {

        multi=num*i;

        cout<<"\n"<<num<<"*"<<i<<"="<<multi;

    }

    getch();

}

Output:

Enter Number=7

7*1=7
7*2=14
7*3=21
7*4=28
7*5=35
7*6=42
7*7=49
7*8=56
7*9=63
7*10=70
Read More

[C++ Program] Table of Number entered by user! (do-while Loop)

Leave a Comment
Write a program to accept number from user and display table of that number.

Following program is created for old compiler. If you are using new compiler then you need change few part of header file.

Program:

#include<iostream.h>

#include<conio.h>



void main()

{

    int num,multi,i=1;

    clrscr();

   

    cout<<"Enter Number=";

    cin>>num;

   

    do

    {

        multi=num*i;

        cout<<"\n"<<num<<"*"<<i<<"="<<multi;

        i++;

    }while(i<=10);

    getch();

}

Output:

Enter Number=7

7*1=7
7*2=14
7*3=21
7*4=28
7*5=35
7*6=42
7*7=49
7*8=56
7*9=63
7*10=70
Read More

Logic Building

Leave a Comment


Hello,

This topic is for any one those who want to start learning programming. This is very basic and important part before start learning any programming language. This topic is for those people who don't know how to write program by your own. This topic helps you to understand the important basic concepts of programming. At the end of this you will able to write program by using your mind.
Read More

Cppdroid Tutorial Step by Step!

Leave a Comment


Hello,

I hope you are aware of this cppdroid Android app. If you don't know what is this then take a look at C Programming through Android device?

Watch this video
Read More

C Programming through Android device?

Leave a Comment

Hello,

Well if you are seeking for software/application which help you to type c program or cpp program on Android device then you are at right place. Now a days there are lots of apps available at Google Play Store for Android device, but which one is better???
Read More