Import java.io.*;class Prime{ public static void main(String a[]) { int n,I; for(n=1;n<=100;n++) { I=2; while(I<n) { if(n%I==0) { break; } I=I+1; } if(n==I) { System.out.print(n+ " "); } } }}
#include<stdio.h>#include<conio.h>main(){ int n,I,sum; float av; clrscr(); printf("nenter the value of n");
scanf("%d",&n); for(I=0;I<=n;I++) { sum=sum+I; } printf("n sum is: %d",sum); av=(float)sum/n; printf("nAverage is : %f",av); getch();}
I am a programmer in Php so If you want to make a project in Php then you can choose topics like:
Website on Electricity board.
Website on Mailing list.
Shopping cart Project.
Online Trouble Shooting.
Website on Any Charity Trust, It can be a Live Project also.
I hope This information will help you … Read more