Showing posts with label first. Show all posts
Showing posts with label first. Show all posts
Wednesday, February 18, 2015
Microsofts first Lumia coming Tuesday likely to be new low end smartphone
Microsofts first Windows smartphone since it dumped the Nokia brand will arrive on Tuesday, and a teaser from the company hints that it will be a new low-end model.
The teaser promises a smartphone for everyone, a typical way to position a budget device. The teaser doesnt offer many details beyond the Nov. 11 launch and an image of what looks like an orange smartphone with a front-facing camera, a feature missing from other low-cost Lumias. Rumored specifications include a 5-in. screen and a 5-megapixel camera.The announcement comes two weeks after the company said its switching brand names to Microsoft Lumia.
The teaser promises a smartphone for everyone, a typical way to position a budget device. The teaser doesnt offer many details beyond the Nov. 11 launch and an image of what looks like an orange smartphone with a front-facing camera, a feature missing from other low-cost Lumias. Rumored specifications include a 5-in. screen and a 5-megapixel camera.The announcement comes two weeks after the company said its switching brand names to Microsoft Lumia.
Thursday, February 12, 2015
C Program to print first 10 Prime numbers
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,count=1,b=0;
cout<<"First Ten Prime Numbers Are
"<<"2";
for(i=3;i>0;++i)
{
for(j=2;j<=i;++j)
{
if(i%j==0)
b=1;
break;
}
if(b==0)
{
cout<<"
"<<i;
count++;
}
b=0;
if(count==10)
break;
}
getch();
}
Wednesday, February 11, 2015
C Program to calculate and print the sum of even and odd integers of the first n natural numbers
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,i,sumeven=0,sumodd=0;
cout<<"Enter value of n:";
cin>>n;
for(i=1;i<=n;++i)
{
if(i%2==0)
sumeven+=i;
else
sumodd+=i;
}
cout<<"
Sum of even Numbers is "<<sumeven;
cout<<"
SUm of odd Numbers is "<<sumodd;
getch();
}
#include<conio.h>
void main()
{
clrscr();
int n,i,sumeven=0,sumodd=0;
cout<<"Enter value of n:";
cin>>n;
for(i=1;i<=n;++i)
{
if(i%2==0)
sumeven+=i;
else
sumodd+=i;
}
cout<<"
Sum of even Numbers is "<<sumeven;
cout<<"
SUm of odd Numbers is "<<sumodd;
getch();
}
Subscribe to:
Posts (Atom)