narasimhamurthy


{ City } hyderabad
< Country > india
* Profession * mca
User No # 117387
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 3
Users Marked my Answers as Wrong # 5
Questions / { narasimhamurthy }
Questions Answers Category Views Company eMail




Answers / { narasimhamurthy }

Question { Syncfusion, 5123 }

C#.net Interview Question

A=10
B=5
C=A+B
Print C

The above will be given in a multiline textbox. You need to
parse the above input, store values for A,B&c. And you have
to display the value of C.


Answer

public class Sum
{
public static void main(String aaa[])
{
int A=10,B=5,C=0;
C=A+B;
System.out.println(" "+C);
}
}

Is This Answer Correct ?    1 Yes 4 No

Question { Winit, 3566 }

print the pattern 1
2 4
3 6 9
4 8 12 16
5 10 15 20 25
if n=5


Answer

public class Pattern
{
public static void main(String args[])
{
for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
{
System.out.print(i*j+" ");
}
System.out.println();
}
}
}

Is This Answer Correct ?    2 Yes 1 No