[1.]

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.

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

[2.]

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.

Input

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’.

Output

For each line of input, print the difference of amount of Abul and Kuddus. Each output should be in separate line.

View Details

Name: Md.Nazmul Hoque

ReplyDeleteId: 201820301

Batch: 58th

C Program to check a Palindrome

#include

using namespace std;

class palindrome

{

public:

int i,num,rev=0,temp,x=0;

palindrome()

{

cout<<"Enter value ";

cin>>num;

temp=num;

}

~palindrome()

{

}

int checkp()

{

while(temp!=0)

{

i = temp%10;

rev = rev*10+i;

temp /= 10;

}

if(num ==rev)

x=1;

else

x=0;

}

};

int main()

{

palindrome p;

p.checkp();

//cout<<p.x;

if (p.x == 1)

cout<<"This number is palindrome";

else

cout<<"This is not palindrome";

}