Skip to main content

Posts

Showing posts from August, 2019

Java programming codes - Learn java in Tamil

This post will help people who watched my youtube about these codes The codes are : package Programs; import java.util.Scanner; public class MyPrograms { public static void main (String[] args){ System. out . println ( "Hi Guys , Welcome To TamilHacks" ); int row = 0 ; System. out . println ( "enter the number of rows" ); Scanner input = new Scanner(System. in ); row = input. nextInt (); for ( int count = 1 ; count <= row ; count ++){ //row for ( int space = 1 ; space<=count; space++){ System. out . print ( " " ); } for ( int counted = row ; counted >= count ; counted--){ //column System. out . print ( "counted " ); } System. out . println (); } /* //assignment: 1 2 3 4 5 6 7

TCS NQT 2020 EXAM - Coding Section Solutions for all batches

Tcs NQT 2020 exam -  coding section solutions for all slots :  NOTE: GitHub source code available for all questions in C, C++ and in python programming languages  click here : SLOT: 1 NOTE:  Time is 30 minutes to solve this problem using any of these programming languages c, c+ +, java, Perl, python 2.7 Problem statement One programming language has the following keywords that cannot be used as identifiers: break, case, continue, default, defer else, for, func, goto, if, map, range, return, Struct, type, var Write a program to find if the given word is keyword or not Example-1 Input:  defer Expected Output: defer is a keyword Example-2 Input:  While Expected Output: while is not a keyword PROGRAM IN C++ : #include <iostream> using namespace std; int main () { string data; cin>>data; if (data == "break" || data == "case" || data == "continue" |