9836577512   info@smcacademy.com

Admission Going On…. Our Android App Available on Google Play Store…

By SMC ACADEMY

Blue Java Program For Keith Number

If a Fibonacci sequence (in which each term in the sequence is the sum of the previous t terms) is formed, with is the first ‘t’ terms being the decimal digits of the number n, then n itself occurs as a term in the sequence.
For example,
14 is a Keith number
Because it generates the sequence:-
1, 4, 5, 9, 14
(1+4)=5, (5+9)=14, (9+14)=23………
Some keith numbers are: 14 ,19, 28 , 47 , 61, 75, 197….
import java.io.*;
import java.util.*;
class Keith
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.print(“Enter the number : “); //inputting the number
int n=sc.nextInt();

int copy=n;
String s=Integer.toString(n);
int d=s.length(); //finding the number of digits (d) in the number
int arr[]=new int[n]; //array for storing the terms of the series

for(int i=d-1; i>=0; i–)
{
arr[i]=copy%10; //storing the digits of the number in the array
copy=copy/10;

}

int i=d,sum=0;
while(sum<n) //finding the sum till it is less than the number
{
sum = 0;
for(int j=1; j<=d; j++) //loop for generating and adding the previous ‘d’ terms
{
sum=sum+arr[i-j];
}
arr[i]=sum; //storing the sum in the array
i++;
}

if(sum==n) //if sum is equal to the number, then it is a Keith number
System.out.println(“The number is a Keith Number”);
else
System.out.println(“The number is a not a Keith Number”);
}
}

By SMC ACADEMY

Basic Blue Java Program

A Blue java program to multiply Two Number without using Multiplication Operator.

import java.io.*;
import java.util.*;
class Product
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.println(“Enter the first number”);
int a = sc.nextInt();
System.out.println(“Enter the Second number”);
int b=sc.nextInt();
int c=0;
for(int i=0;i

By SMC ACADEMY

BASIC TIPS ON “PYTHON” PROGRAMMING

More or less we all know that Python is a Programming language. Python is a high level Programming Language used in a wide variety of Applications. Python is a interpreted language. Its a easy to learn Programming Language. In every development courses you can get some idea on C & C++ language. But it is always better to learn Python Language also. For this reason we, at SMC Academy has started sharing basic tips on “Python Programming”. You can follow our blogs regulary to learn more about such languages. Hope you’ll be able to gain knowledge from here.

Python Programming  is like fun Play. It’s easier to understand and write . Below We Written a simple code:-

 

a = 5

b =9

sum = a + b

print(sum)

 

Even if you have never learned any programming Language before, then also you can easily guess that this program adds two numbers and prints it.

In this Program  a & b are two variable.  Here, 5 & 9  are stored in this variable.

variables a and b are added using + operator. The result is stored in another variable sum.

The print() function prints the output to the screen.

By SMC ACADEMY

Basic Tips on “C” Programming

More or less we all know that “C” is a mother language of all programming, so everyone should learn basic “C programmming” if they want to enter in development industry. In every development courses you can get some idea on C & C++ language. But it is always better to learn these languages in depth. For this reason we, at SMC Academy has started sharing basic tips on “C Programming”. You can follow our blogs regulary to learn more about such languages. Hope you’ll be able to gain knowledge from here.

Lets start with our today’s tips:

#include <stdio.h>

int main()

{

printf(“SMC ACADEMY”);

return 0;

}

The  #include <stdio.h> is used as a pre processor command. This command tells compiler to include the contents of stdio.h (standard input and output) file in the program.
The stdio.h file contains functions such as scanf() and printf() to take input and display output respectively.

If you use printf() function without writing

#include <stdio.h>, the program will not be compiled.

The execution of a C program starts from the main() function.

The printf() is a library function to send formatted output to the screen. In this program, the printf() displays SMC Academy text on the screen.

The return 0; statement is the “Exit status” of the program.

If you use void main() instead of int main() then you have to end with getch();

By SMC ACADEMY

WHY SHOULD ONE JOIN SUBJECT COACHING CLASSES AT SMC ACADEMY

SMC ACADEMY an ultimate name in the field of Academics. An ultimate solution for all the
educational problems of your child. Our mission is to induce the long lost enthusiasm for
education in a child.
We don’t believe in studying for the sake of studying. We try to develop love between the
student and the subject so that he/she is never afraid of the subject.
We not only try to improve the marks of the student but also solidify his/her base. we make
the child understand each and every concept thoroughly.

In a nutshell SMC Academy & its Faculty makes a Serious effort in base building of the candidate so as education becomes a matter of interest rather than terror.

By SMC ACADEMY

WHY SHOULD ONE JOIN SPECIAL SPOKEN ENGLISH CLASSES AT SMC ACADEMY

We have a brilliant faculty of veteran teachers to provide the best of their knowledge in the most appetizing form so as to enable the candidates to absorb it easily .So whether you wish to enhance your basic spoken English level, or learn professional English, corporate English, our experts here can help reach your goal.

Our spoken English reaching methods involve state-of-the-art language learning methods. The infrastructure of the classes is designed keeping in mind the purpose of the students. The classes have all the basic amenities required to keep the students engaged and to keep them motivated. Starting from the basic spoken English classes to the classes to learn professional English, you can find here almost everything.

By SMC ACADEMY

Necessary Computer Skills for Youth:-

Computers and computerized devices have become an integral part of society. In fact, almost all people use them in homes, school, colleges and the workplace or office. It has become necessary to know basic computer skills to survive in our society. In School, many students acquire basic computer Knowledge with the knowledge to operate a computer, such as sending and receiving emails, Collecting data for School/College Projects , Searching New topics, Research, creating word/text documents, bills, reports and creating presentations. Rom SMC Academy’s Computer courses, student must learn basic computer skills in order to execute commands in basic computer applications. These basic computer skills help students excel in School/College and eventually carry over with them into the workforce. Exercising and advancing computer literacy skills can also lead to greater future opportunities.






Blue Java Program For Keith Number
Basic Blue Java Program
BASIC TIPS ON “PYTHON” PROGRAMMING
Basic Tips on “C” Programming
WHY SHOULD ONE JOIN SUBJECT COACHING CLASSES AT SMC ACADEMY
WHY SHOULD ONE JOIN SPECIAL SPOKEN ENGLISH CLASSES AT SMC ACADEMY
Necessary Computer Skills for Youth:-