C Programming Index-2

Index-1     Index-2    

A particle has initial velocity and acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?
Input The input will contain two integers in each line. Each line makes one set of input. These two integers denote the value of v (−100 ≤ v ≤ 100) and t (0 ≤ t ≤ 200) (t means at the time the particle gains that velocity)
Output For each line of input print a single integer in one line denoting the displacement in double of that time.

View Details


Abul and Kuddus are two brothers. Both of them are sell flowers in street. Abul sell the flowers in Mohakhali and Kuddus sell in Shahbag. End of the day Abul earn average 1000 tk. Where Kuddus have only 400. So Kuddus is never earn greater than Abul.
The input contains two numbers in every line. These two numbers in each line denotes the amount of earn Abul and Kuddus or vice versa. The input numbers are not greater than 2^32. Input is terminated by ‘End of File’.
For each line of input, print the difference of amount of Abul and Kuddus. Each output should be in separate line.

View Details

1 comment:

  1. Name: Md.Nazmul Hoque
    Id: 201820301
    Batch: 58th

    C Program to check a Palindrome

    using namespace std;
    class palindrome
    int i,num,rev=0,temp,x=0;
    cout<<"Enter value ";

    int checkp()
    i = temp%10;
    rev = rev*10+i;
    temp /= 10;
    if(num ==rev)
    int main()
    palindrome p;
    if (p.x == 1)
    cout<<"This number is palindrome";
    cout<<"This is not palindrome";