Beruflich Dokumente
Kultur Dokumente
Due to these things I have thought of giving free discussions on various subjects
of AMIE. Section A & Section B (Electrical only).I intend to teach the subjects on
Saturday and Sundays. Being an AMIE passed candidate I have thought of
helping my fellow brethren with it. I can be contacted on
Michael Sony
H.no 50/A, St.Pedro
Ribander Goa
403006
Tel:09881079529
Email:michaelsonygoa@gmail.com
Michael Sony
How to refer this Tutorial
This Assignments is designed for Computer and Informatics to
take care of C needs of AMIE students. Hence the no prerequisite
for these tutorials.
#include <stdio.h>
main()
{
printf("SAchin Tendulkar.\n");
printf("Damodar Nadar\n");
}
@ Sachin Tendulkar.
Damodar Nadar.
2. #include <stdio.h>
main()
{
printf("AMIE. ");
printf("The Institution of Engineers(INDIA).\n");
}
@ AMIE. The Institution of Engineers(INDIA).
3. #include <stdio.h>
main()
{
printf("Hello...\n..oh my\n...when do i stop?\n");
}
@ Hello...
..oh my
...when do i stop?
4. #include <stdio.h>
main()
{
int sum;
main()
{
int value1, value2, sum;
value1 = 35;
value2 = 18;
sum = value1 + value2;
printf("The sum of %d and %d is %d\n", value1, value2, sum);
}
main()
{
int sum;
float money;
char letter;
double pi;
sum = 10; /* assign integer value */
money = 2.21; /* assign float value */
letter = 'A'; /* assign character value */
pi = 2.01E6; /* assign a double value */
printf("value of sum = %d\n", sum );
printf("value of money = %f\n", money );
printf("value of letter = %c\n", letter );
printf("value of pi = %e\n", pi );
}
Sample program output
value of sum = 10
value of money = 2.210000
value of letter = A
value of pi = 2.010000e+06
7. #include <stdio.h>
main()
{
int value1 = 12, value2 = 5;
float answer = 0;
main()
{
float balance;
float tax;
balance = 72.10;
tax = balance * TAX_RATE;
printf("The tax on %.2f is %.2f\n", balance, tax );
}
5. Declare a variable called arctan which will hold scientific notation values (+e)
int sum;
char letter;
#define TRUE 1
float money;
5. Declare a variable called arctan which will hold scientific notation values (+e)
double arctan;
int total;
total = 0;
int loop;
8. Define a constant called GST with a value of .125
GURUTOOL
Free Self Help Tutorial for AMIE Preparation
Michael Sony
H.no 50/A
St.Pedro Ribander
Goa- 403006
Tel:-09881079529