Saturday, 6 September 2014

TRYING SOME JAVA BASIC STUFFS

Now lets have some work with JAVA .an object oriented language..........after whole day............hard work got fully tired and now posting a simple n basic programme just typed now only..........in my netbeans which is open source software developed by sun java...........so lets check whether the number entered by the user is prime or not...just used some simple logical calculation


so here comes our design view
 the source code given in the check button as follows.......

 int a=Integer.parseInt(jTextField1.getText());
        int c;
        int b;
        int d;
         if(a==2){
                jLabel1.setText("it is a prime number");}
                if(a==0 || a==1){
                    jLabel1.setText("it is only a natural number");
                }
           
        for(int i=2;i<a;++i){
            c=a%i;
            d=a-1;
         
            if(c==0){
                jLabel1.setText("it is not a prime number");
                break;
            }
            else {
                if(c>0 && i==d){
                  jLabel1.setText("it is a prime number");
                }
            }

        }
here again i have used looping................its fun to play with looping......u will be amazed to know that Facebook used looping in wishing happy birthday to all the users...............
looping is a basic thing....................so for beginner like me..its of great importance...because in my view new buddies can do any thing..
here another screen shot........................don't think that it is boring ...........it is all basic we will grow higher n higher.....step by step..
again i m repeating "EVERYONE SHOULD LEARN TO CODE BECAUSE IT TEACHES YOU HOW TO THINK"-Steve Jobs
now going to have some chats with my friend  especially girls on facebook.............till then goodnight n have tight sleep......

lEARN lOOPING................................FROM THE ONE N ONLY MARK

Friday, 5 September 2014

lets start with C..........the basic programming language................................it is good for beginners................i think so..............as my teachers says C for simple..............as i am also a beginner............and writing my blog this time as tomorrow is my FPl(Fundamental Programming Language paper)...................and know nothing about that........................as C is open source so just Google it and download it...........................
lets solve some mathematics....................this is a basic program me...........in this the user will enter any integer...................and the output will be sum of the individual digits
so lets the programming begin.........
#include<stdio.h>--------(library for getting output)
#include<conio.h>
int main(){
int a,b,c;-----------------(deceleration of variables)
c=0;
printf("enter the number\t");---------------(printing command which will appear on the screen as it is)
scanf("%d",&a);---------------------(input taking command from user)
do{----------------------------------(type of looping,which will check the condition given condition)
b=a%10;
a=a/10;
c=b+c;
}while(b>0);-----------------(condition checked firstly executing the body of the loop)
printf("the sum of the individual digit is\t %d",c);
getch();------------------------------(it is the output function which is there in the above directories)
return 0;}
.
.
.
its new for beginners so just relax................its a toy stuff only............
and the people who are master in this are thinking that the admin of this blog is just time passing................
but i think..............the world can be entertained by just 3 things "programming,programming n girls".......................now tired going to sleep have fun with programming

Why we should learn to code?


"Hello World "-Our first post

Interested in how computers work? wanna have some fun making computer do what u think???
                                       YOU ARE AT RIGHT PLACE!
yes when we were new to programming there wasn't pretty  much good stuff for beginners but now web is full of stuff for newbies ..... confused?
yes , you should be confused because you don't know where to start!
there we do our part..we will post some interesting  stuff.. just have a look at our posts daily.
(NOTE-this blog is still under construction..please give us s
ome time to settle down here ;)