Assignment 1 Basic GO
Assignment 1 Basic GO
Practical Session: -
1. Basic Programs using printf( ) & println ( ) – 5 Programs
2. Data Types Related Programs- At least 05 programs
3. Type Casting Related Programs- At Least 05 Programs
4. Program related to Constant & Variable declaration and its
types- (At least 02 Programs)
5. User input Related Programs- At least 02
6. Using Decision Making Statement
1) if statement – (05 Programs)
2) if-----else statement- (05 Programs)
3) nested if—else statement- (1 Programs)
4) switch-----case Statement- (03 Programs –Menu
Driven)
7. Using Looping Statements
1) While loop- (05 Programs)
2) Do---while - (05 Programs)
3) for loop - (05 programs)
8. Using Array - 1D (05 Programs)
9. Using String- (15 Programs)
10. Pointer – (05 Programs)
SET C
1. WAP in go language to concatenate two strings
using pointers.
2. WAP in go language to accept two strings and
compare them.
3. WAP in go language to accept user choice and
print answer of using arithmetical operators.
4. WAP in go language to check whether accepted
number is single digit or not.
5. WAP in go language to check whether first string is
substring of another string or not.