Ada lagi nih... Source Code keren... Untuk menampilkan deret Bilangan prima.... Range-nya terserah...(Tergantung Inputan-nya mksud ane....)
silakan di coba...
#include <stdio.h>
#include <conio.h>
void main(){
int batas, i,x;
int bil_prima = 1;
printf("Masukkan batas : ");
scanf("%d", &batas);
printf(" 2");
for(i=3;i<=batas;i=i+2)
{
bil_prima = 1;
for(x = 3; i > x; x=x+2)
{
if(i % x == 0){
bil_prima = 0;
}
}
if(bil_prima==1)
printf(", %d ", i);
}
getch();
}
Sabtu, 07 Mei 2011
[C++] Perkalian 2 buah Matriks
Ada Tugas Suruh buat beginian...
langsung aja... Yg berminat Silakan Try....
#include "stdio.h"
#include "conio.h""
void main(){
int a[2][3],b[3][2],c[1][4],i,j,k,l,z=0,t=0,g,h;
for(i=0;i<2;i++){
for(j=0;j<3;j++){
printf("input data matrik A[%i][%i] : ",i+1,j+1);
fflush(stdin);scanf("%i", &a[i][j]);
}}
printf("\n");
for(i=0;i<3;i++){
for(j=0;j<2;j++){
printf("input data matrik B[%i][%i] : ",i+1,j+1);
fflush(stdin);scanf("%i", &b[i][j]);
}}
printf("\n print matrik A\n");
for(i=0;i<2;i++){
for(j=0;j<3;j++){
printf("%6i",a[i][j]);
}
printf("\n");
}
printf("\n print matrik B\n");
for(i=0;i<3;i++){
for(j=0;j<2;j++){
printf("%6i",b[i][j]);
}
printf("\n");
}
h=0; //nilai awal h, h=baris matrik a
for(k=0;k<2;k++){ //for untk perulangan baris matrik C
g=-1; //nilai awal g, g=kolom matrik b
for(l=0;l<2;l++){ //for::perulangan kolom matrik C
t=0; //mengembalikan/ set ulang nilai t=0
g=g+1; //berpindah kolom, g=kolom
for(j=0;j<3;j++) { //for::perulangan utk mngalikan matrik
z=a[h][j] * b[j][g]; //rumus: baris Matrik A X Kolom mtrik b
t=t+z; //mnjumlhkan nilai t + hasil dari rumus Z
c[k][l]=t; //memasukkan nilai total ke array sesuai index
} //kluar for perkalian
} //kluar for perulangan kolom
h=h+1; //pindah baris, h=baris
} //Keluar For
printf("\n Matrik C :\n");
for(k=0;k<2;k++){
for(l=0;l<2;l++){
printf("%6i",c[k][l]);
}
printf("\n");
}
getch();
}
langsung aja... Yg berminat Silakan Try....
#include "stdio.h"
#include "conio.h""
void main(){
int a[2][3],b[3][2],c[1][4],i,j,k,l,z=0,t=0,g,h;
for(i=0;i<2;i++){
for(j=0;j<3;j++){
printf("input data matrik A[%i][%i] : ",i+1,j+1);
fflush(stdin);scanf("%i", &a[i][j]);
}}
printf("\n");
for(i=0;i<3;i++){
for(j=0;j<2;j++){
printf("input data matrik B[%i][%i] : ",i+1,j+1);
fflush(stdin);scanf("%i", &b[i][j]);
}}
printf("\n print matrik A\n");
for(i=0;i<2;i++){
for(j=0;j<3;j++){
printf("%6i",a[i][j]);
}
printf("\n");
}
printf("\n print matrik B\n");
for(i=0;i<3;i++){
for(j=0;j<2;j++){
printf("%6i",b[i][j]);
}
printf("\n");
}
h=0; //nilai awal h, h=baris matrik a
for(k=0;k<2;k++){ //for untk perulangan baris matrik C
g=-1; //nilai awal g, g=kolom matrik b
for(l=0;l<2;l++){ //for::perulangan kolom matrik C
t=0; //mengembalikan/ set ulang nilai t=0
g=g+1; //berpindah kolom, g=kolom
for(j=0;j<3;j++) { //for::perulangan utk mngalikan matrik
z=a[h][j] * b[j][g]; //rumus: baris Matrik A X Kolom mtrik b
t=t+z; //mnjumlhkan nilai t + hasil dari rumus Z
c[k][l]=t; //memasukkan nilai total ke array sesuai index
} //kluar for perkalian
} //kluar for perulangan kolom
h=h+1; //pindah baris, h=baris
} //Keluar For
printf("\n Matrik C :\n");
for(k=0;k<2;k++){
for(l=0;l<2;l++){
printf("%6i",c[k][l]);
}
printf("\n");
}
getch();
}
Sabtu, 22 Januari 2011
Microsoft® SQL Server® 2008 Management Studio Express
Microsoft SQL Server 2008 Management Studio Express is a free, integrated environment for accessing, configuring, managing, administering, and developing all components of SQL Server, as well as combining a broad group of graphical tools and rich script editors that provide access to SQL Server to developers and administrators of all skill levels.
Microsoft SQL Server 2008 Management Studio Express (SSMSE) is an integrated environment for accessing, configuring, managing, administering, and developing all components of SQL Server. SQL Server 2008 Management Studio Express combines a broad group of graphical tools with a number of rich script editors to provide access to SQL Server to developers and administrators of all skill levels. Developers get a familiar experience, and database administrators get a single comprehensive utility that combines easy-to-use graphical tools with rich scripting capabilities.
For more information about SQL Server 2008 Management Studio Express, including other versions and downloadable components now available, see Microsoft SQL Server Express.
System Requirements
Link Download (Direct)...
Microsoft SQL Server 2008 Management Studio Express (SSMSE) is an integrated environment for accessing, configuring, managing, administering, and developing all components of SQL Server. SQL Server 2008 Management Studio Express combines a broad group of graphical tools with a number of rich script editors to provide access to SQL Server to developers and administrators of all skill levels. Developers get a familiar experience, and database administrators get a single comprehensive utility that combines easy-to-use graphical tools with rich scripting capabilities.
For more information about SQL Server 2008 Management Studio Express, including other versions and downloadable components now available, see Microsoft SQL Server Express.
System Requirements
- Supported Operating Systems:Windows 7;Windows Server 2003 Service Pack 2;Windows Server 2008;Windows Server 2008 R2;Windows Vista;Windows Vista Service Pack 1;Windows XP Service Pack 2;Windows XP Service Pack 3
- 32-Bit Systems: Computer with Intel or compatible 1GHz or faster processor (2 GHz or faster is recommended. Only a single processor is supported)
- 64-Bit Systems: 1.4 GHz or higher processor (2 GHz or faster is recommended. Only a single processor is supported)
- Minimum of 512 MB of RAM (1 GB or more is recommended)
- 1 GB of free hard disk space
SQLManagementStudio_x64_ENU.exe [176.5MB] Download
SQLManagementStudio_x86_ENU.exe [168.3MB] Download
Microsoft® SQL Server® 2008 Express
SQL Server 2008 Express is a free edition of SQL Server that is an ideal data platform for learning and building desktop and small server applications, and for redistribution by ISVs.
Microsoft SQL Server 2008 Express is a powerful and reliable data management system that delivers a rich set of features, data protection, and performance for embedded application clients, light Web applications, and local data stores. Designed for easy deployment and rapid prototyping, SQL Server 2008 Express is available at no cost, and you are free to redistribute it with applications. It is designed to integrate seamlessly with your other server infrastructure investments. For more information about SQL Server Express, including other versions and downloadable components now available, see Microsoft SQL Server Express.
System Requirements
download Link (Direct)...
Microsoft SQL Server 2008 Express is a powerful and reliable data management system that delivers a rich set of features, data protection, and performance for embedded application clients, light Web applications, and local data stores. Designed for easy deployment and rapid prototyping, SQL Server 2008 Express is available at no cost, and you are free to redistribute it with applications. It is designed to integrate seamlessly with your other server infrastructure investments. For more information about SQL Server Express, including other versions and downloadable components now available, see Microsoft SQL Server Express.
System Requirements
- Supported Operating Systems:Windows Server 2003 Service Pack 2;Windows Server 2008;Windows Vista;Windows Vista Service Pack 1;Windows XP Service Pack 2;Windows XP Service Pack 3
- 32-Bit Systems: Computer with Intel or compatible 1GHz or faster processor (2 GHz or faster is recommended. Only a single processor is supported)
- 64-Bit Systems: 1.4 GHz or higher processor (2 GHz or faster is recommended. Only a single processor is supported)
- Minimum of 256 MB of RAM (1 GB or more is recommended)
- 1 GB of free hard disk space
download Link (Direct)...
SQLEXPR_x64_ENU.exe [82.5MB] Download
Langganan:
Postingan (Atom)