Advertisement
5_2007-2008 Files/ File Controls/ Input/ Output #173312

MSFlexgrid Editing Lite

This is the 'lite' version of the MSFlexgrid Editing code I posed on the 12th. This version does not use any TextBoxes at all. It has pretty much all the same features as the 'full' code, but a lot less code. Unless you're pickey you'll never know you're being faked out. 9-24-99: Major Additions (1) erases current cell and restores it again. (2) ADD, DELETE, INSERT, EXTRACT rows / cols.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
#include "stdio.h"
int main(){
	
	int i,j,a,control=0,control2=0;
	
	printf("\nPlease write a number...");
	scanf("%d",&a);
	
	for(i=2;i<a;i++){
		for(j=2;j<i;j++){
			if(i%j==0){
				control2++;
				}
		}
			if(control2==0)
				printf("%d\n",i);
		
			if(a%i==0){
			control++;
			}
			
			control2=0;
	
	}
	
	if(control==0)
     	printf("\n%d is prime \n",a);
	else 
		printf("\n%d is not prime\n",a);
		return 0;
}
Original Comments (3)
Recovered from Wayback Machine