Sunday, February 28, 2016

Drawing Flag of Bangladesh with Java

import java.awt.*;
import java.applet.*;

public class BanFlag extends Applet
{

public void paint (Graphics g)
{
 g.setColor(Color.black);
 g.fillRect(10,30,20,500);
 g.setColor(new Color(46, 139, 89));
 g.fillRect(40,50,300,170);
 g.setColor(Color.red);
 g.fillOval(120,80,120,120);
}

}

Tuesday, February 23, 2016

Round 1 Contest ( Test Version)

It is a simple problem volume and useful for beginner. Everyone can solve the tasks easily. Have fun and keep coding. Thank you.   Click here to enter the Round 1 Contest

Monday, February 22, 2016

UVA 10696 f91

#include<iostream>

using namespace std;
int main()
{  int n;
    while(cin>>n)
    {
    if(n==0) break;
    else if(n>=101) cout<<"f91("<<n<<") = "<<n-10<<endl;
    else if(n<=100) cout<<"f91("<<n<<") = 91"<<endl;
}
    return 0;
}