Skip to main content

Posts

Showing posts from October, 2017

Running c and c++ code on windows

Steps : 1.visit google 2. search code blocks 3. select downloads 4.select download the binary release 5.Select OS windows 6.Select codeblocks- mingw -setup.exe 7.click on source forge.net for download 8.after download open setup file. 9.click    next    I agree    next,    next or change path,    no(bcz we don't want to run right now)    next,    finish 10.go to downloaded path      C:\Program Files (x86)\CodeBlocks\MinGW\bin      copy this path in which all c and cpp files are there. 11.Right click on my computer      Properties      advanace system settings      select environment variable      select path      click on edit button      leave content as it is type semicolon and paste copied path.      i.e.      C:\Program Files (x86)\CodeBlocks\MinGW\bin 12.click ok three times. 13.Open command prompt    A. For C :      type start notepad hello.cpp #include<stdio.h> void main() { printf("hello world"); }     Compile

Running C programs on windows using command prompt.

To run c programs on windows we have to follow following steps: 1.Visit google 2.Search tdm gcc compiler (see image)    then select tdm-gcc:news option 3.Download TDM bundle.  or click here download 4.Run downloaded exe file. 5.Select following options:    create,    32/64 as per your OS,    next,    installation directory path-next,    next,    install,    next,    finish.    here,installed successfully.........then 9.open command promt 10.Type:   start notepad hello.c 11.yes 12.type code: #include<stdio.h> void main() { printf("hello world"); } 13.save code 14. open command prompt and type : gcc -o hello hello.c   this will compile then hello    this will run code. Output will be : hello world Thank you so much. download
Steps to run JAVA code using command prompt: pc right click properties advance system settings environment variable system variable path C:\Program Files\Java\jdk1.8.0_144\bin click three times 'ok'. go to command promt (start+r+cmd) type javac -version start notepad hello.java yes type code javac hello.java java hello  done😊 /////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ a.java class a { public static void main(String a[]) { System.out.println("hello world"); } } /////////////////////////////////////////// compile it using javac a.java run it using java a then you will get output. (my intension is to use windows like fedora.....)                                                                                                                  Thank you so much............
PL/SQL : 1.Hellow world program Begin Dbms_output.put_line(‘Hellow world!!!!!!’); End; / Output : Hellow world!!!!! * note :-this may not show you direct output so type à set serveroutput on ; 2.Display 2 variables Declare X number; Y number; Begin X:=10; Y:=20; Dbms_output.put_line(x); Dbms_output.put_line(y); End; / Output : 10 20 OR Declare X number; Y number; Begin X:=10; Y:=20; Dbms_output.put_line(‘x=’); Dbms_output.put_line(x); Dbms_output.put_line(‘y=’); Dbms_output.put_line(y); End; / Output : X= 10 Y= 20 3. Addition of two number Declare X int; Y int; Z int; Begin X:=10; Y:=20; Z:=X+Y Dbms_output.put_line(z); End; / Output : 30 4.Arithm  declare   x int;     y int;     z int;     begin     x:=100;     y:=200;     dbms_output.put_line('addition');     dbms_output.put_l