Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Anuj J.
Software Engineer and Teacher
Tutor Satisfaction Guarantee
PHP Programming
TutorMe
Question:

Fibonacci Series

Anuj J.
Answer:

<?php $num = 0; $n1 = 0; $n2 = 1; echo "<h3>Fibonacci series for first 12 numbers: </h3>"; echo "\n"; echo $n1.' '.$n2.' '; while ($num < 10 ) { $n3 = $n2 + $n1; echo $n3.' '; $n1 = $n2; $n2 = $n3; $num = $num + 1; ?>

Java Programming
TutorMe
Question:

Armstrong Number in Java

Anuj J.
Answer:

class ArmstrongExample{ public static void main(String[] args) { int c=0,a,temp; int n=153;//It is the number to check armstrong temp=n; while(n>0) { a=n%10; n=n/10; c=c+(a*a*a); } if(temp==c) System.out.println("armstrong number"); else System.out.println("Not armstrong number"); } }

C Programming
TutorMe
Question:

Program to print half pyramid a using numbers

Anuj J.
Answer:

#include <stdio.h> int main() { int i, j, rows; printf("Enter number of rows: "); scanf("%d",&rows); for(i=1; i<=rows; ++i) { for(j=1; j<=i; ++j) { printf("%d ",j); } printf("\n"); } return 0; }

Send a message explaining your
needs and Anuj will reply soon.
Contact Anuj
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.