Peter SH10
Tuesday, November 1, 2011
ប្រមាណវិធីគណិតវិទ្យា 1+3+5+...+(2n-1)
ប្រមាណវិធីគណិតវិទ្យា 1+3+5+...+(2n-1)
import java.util.*;
class SnMath{
public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int i=1, s=0;
System.out.print("Enter N:");
int n=sc.nextInt();
Read more »
Home
Subscribe to:
Posts (Atom)