Posts

Showing posts from August, 2018

Java The number

Java was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems, Inc. in 1991.  It took 18 months to develop the first working version. This language was initially called “Oak,” but was renamed “Java” in 1995. primary motivation was the need for a platform-independent (that is, architecture-neutral) language that could be used to create software to be embedded in various consumer electronic devices, such as microwave ovens and remote controls Although it is possible to compile a C++ program for just about any type of CPU, to do so requires a full C++ compiler targeted for that CPU. The problem is that compilers are expensive and time-consuming to create This second force was, of course, the World Wide Web. Java enhanced and refined the object-oriented paradigm used by C++, added integrated support for multithreading, and provided a library that simplified Internet access An applet is a special kind of Java program that is

C Pattern program using ternary operator and two for loops

Image
first implment then understand the magic of programming....... #include <stdio.h> #include <conio.h> void main(){ int i,j,k,l,a,b,c; clrscr(); for(i=1;i<=7;i++){ c=64; for(j=1;j<=7;j++){ i==1||i==7?(j>3&&j<5?(j<5?printf("%c",++c):printf("%c",--c)):printf(" ")):a<1; i==2||i==6?(j>2&&j<6?(j<5?printf("%c",++c):printf("%c",--c)):printf(" ")):a<1; i==3||i==5?(j>1&&j<7?(j<5?printf("%c",++c):printf("%c",--c)):printf(" ")):a<1; i==4?(j<5?printf("%c",++c):printf("%c",--c)):a<1; } printf("\n"); } getch(); }