Mga Pahina

Huwebes, Enero 24, 2013

Nested Loop

#include<stdio.h>
#include<conio.h>
void main(){
clrscr();
int r,c,sum;
for(r=1;r<3;r++)
{
for(c=1;c<=2;c++)
{
sum=r+c;
printf("\n r=%d c=%d sum=%d",r,c,sum);
}
}
getch();
}

VB GRADING SYSTEM CODES

VB GRADING SYSTEM CODES
GRADING SYSTEM FORM1
LOG-IN COMMAND CODES:

Private Sub Command1_Click()
If Text1.Text = "jomar" And Text2.Text = "flores" Then
MsgBox "Acess Granted", vbInformation
Unload Me
Form2.Show
Else
MsgBox "Access Denied", vbCritical
End If
End Sub

CANCEL COMMAND CODES:

Private Sub Command2_Click()
a = MsgBox("Are you want to exit?", vbQuestion + vbYesNo)
If a = vbYes Then
End If
End Sub