can anyone give me a detailed importance of sun certificate for java programmer???
What about the job oppurtunities for the person certified??
can anyone give me a detailed importance of sun certificate for java programmer???
What about the job oppurtunities for the person certified??
TRY THIS OUT
#include<stdio.h>
main()
{
int i,j,k;
printf("\n");
for(i=1;i<=10;i++)
{
for(j=1;j<=31-i;j++)printf(" ");
for(j=i,k=(2*i-1)/2+1;k;j++,k--)
{
if(j==10)j=0;
printf("%d",j);
}
for(j-=2,k=(2*i-1)/2;k;j--,k--)
{
if(j==-1)j=9;
printf("%d",j);
}
printf("\n");
}
}
This is a simple problem.
U have to specify path to include header files.
Here is the way to do it.
Open ur program window.
click options at the top.
click directories.
In include directories u have to specify path.
suppose ur tc(compiler) folder is in c drive.
then path is: c:\tc\include
suppose ur tc(compiler) is in directory xyz which is in d drive.
then path is: d:\xyz\tc\include
got it?
if not,reply me.
#include "stdafx.h"
#include <iostream>
#include <ctype.h>
#include <fstream>
#include <string>
using namespace std;
int reverseDigit, integer, reverse;
int main()
{
string integer;
int cntr,f=1;
cout <<"Please input an integer: ";
cin >> integer;
cntr = integer.size();
cntr--;
cout <<"reverse = ";
if (integer [0] == '-')
{
cout << "-";
}
while (cntr > -1)
{
if (integer [cntr] == '0'&&f=1)
cntr--;
else
{
cout << (integer[cntr--]);
f=0;
}
}
cout << endl;
return 0;
}
/* This program is for checking a single integer*/
#include<stdio.h>
#include<stdlib.h>
main()
{
int a,i;
printf("\nEnter a positive integer\n");
scanf("%d",&a);
if(a<=0)
{
printf("\nInvalid input\n");
exit(1);
}
for(i=2;i<=a-1;i++)
if(a%i==0)break;
if(i==a)printf("\n%d is prime\n",a);
else printf("\n%d is not a prime\n",a);
}
/* This is for elements in an array*/
#include<stdio.h>
#include<stdlib.h>
#define MAX 5
main()
{
int a[MAX],i,m;
printf("\nEnter elements into array\n");
for(m=0;m<=MAX-1;m++)
{
scanf("%d",&a[m]);
if(a[m]>0)
{
for(i=2;i<=a[m]-1;i++) if(a[m]%i==0)break;
if(i==a[m])printf("\n%d is prime\n",a[m]);
else printf("\n%d is not a prime\n",a[m]);
}
else printf("\n%d is not positive\n");
}
}
Hi friend.
This is goutham from India.
Ur doubt is that why is char range -128 in the negative side.
The most significant bit is sign bit.
So the bits available for storing magnitude is 7.
If sign bit is 0,the number is positive and the magnitude is stored in conventional binary form.
If sign bit is 1,the number is negative and the magnitude is stored in two's complement form.
For example, +1 is stored as 00000001.
-1 is sored as 11111111.
-128 gets 10000000.
If u still cant get it reply me.
bye