import java.io.*; public class p_factor
{
public static void main(String args[])throws IOException
{
int arr[]=new int[50];
int n,i,j=0,k,f=0;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a number");
n=Integer.parseInt(br.readLine());
for(i=2;i<n;i++)
{
if(n%i==0)
{
arr[j]=i;
j++;
}
}
for(i=0;i<j;i++)
{
for(k=2;k<arr[i];k++)
{
if(arr[i]%k==0)
{
f=1;
}
}
if(f==0)
{
System.out.println(arr[i]);
}
}
}
}
wap to print all the arnstrong no. between 100&1000
yo yo as
CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END
#include<iostream> using namespace std; int main(void) { int a; int b; { cout << "Please enter a number: "; cin >> a; b = a%2 == 0 ? a*a : a*a*a; cout << "The result is: " << b << endl; } return 0; } - - - //Alternative #include<iostream> #include<cmath>
cls total=0 for i=0 to 20 step -2 total = total+i print i ; next i print "total is " total end send by tripti
Main(include.h)
10. input number 20. let accumulator = 0 30. if number > 0 then goto 80 40. let digit = number % 10 50. let accumulator = accumulator * 10 + digit 60. let number = number / 10 70. goto 30 80. print accumulator
#include <stdio.h> int main (void) { puts ("in 0 10 010kzvcs"); return 0; }
Samsung s5233 wap code
To get wap on your mobile phone, simply get in touch with your service provider. The provider will give you instructions on how to get wap.
WAP is Wireless Application Protocol
What are the feature of WAP?"