-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCyclomaticComplexity.java
57 lines (54 loc) · 1.36 KB
/
CyclomaticComplexity.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package software_testing_meaures;
import java.util.Scanner;
/**
*
* @author Suraj Singh
*/
//class CyclomaticComplexity {
// public static void main(String arfs[])
// {
// Scanner s = new Scanner(System.in);
// int i;
// String input = s.next();
// for(i =0;i<input.length()/2;i++)
// {
// if(input.charAt(i)!=input.charAt(input.length()-i-1))
// break;
// }
// if(i==input.length()/2)
// System.out.println("Palindrome");
// else
// System.out.println("Not a Palindrome");
// }
//}
/*
Program to find the result of student
*/
class CyclomaticComplexity
{
public static void main(String arfs[])
{
Scanner s = new Scanner(System.in);
int a,sum = 5;
System.out.println("Enter marks ");
int n = s.nextInt();
if(n < 100 && n > 0)
{
System.out.println("Marks obtained "+n);
if(n>50)
{
System.out.println("Student Passed ");
}
else
{
System.out.println("Student Failed");
}
}
System.out.println("The End !!!");
}
}