Saturday, 27 December 2014

UVA 10055 - Hashmat the Brave Warrior(c file)

Problem Type : Super easy

#include <stdio.h>

int main()
{
    long int a, b;

    while(scanf("%ld %ld", &a, &b)==2)
    {
        if(a>b)
        {
            printf("%ld\n", a-b);
        }
        else
        {
            printf("%ld\n", b-a);
        }
    }
    return 0;
}

No comments:

Post a Comment

ট্রিগার এর মাধ্যমে ডাটা ইনসার্ট - insert data using Database Trigger (Mysql)

সর্বপ্রথম আমরা প্রবলেমটা বুঝিঃ আমি একটা টেবিলের একটা কলামের ভ্যালুর উপর ডিপেন্ড করে আরেকটা কলামে ডাটা insert করব । এই কাজটা ট্রি...