You are on page 1of 3

QE006 : BASIC PROGRAMMING ASSIGNMENT 2 TITLE : INTRODUCTION TO THE CONCEPT AND BASIC INSTRUCTIONS OF C++ PROGRAMMING

QUESTION 1 Constant Int, char Variable Number1,Number2,Number3 Expression constant and variable int number1, number2, number 3

QUESTION 2 a. cout<< I love C++ Programming subject\n <<number; cout<< I love C++ Programming subject\n <<number; b. cin>> MarKs; cin>>marks; c. Cout<< The average is << (x+y)/a

cout<< The average is << (x+y)/a; d. Cin>> g,h,f; cin>>g>>h>>f; e. cout>>value 1 , # value 3; cout>>value1>>value3; f. //This is the program that calculate the worker salary for every month?? //This is the program that calculate the worker salary for every month

g. cout c u

h Product of <<x<< Pr duc

d << << is <<r s u t d i r ul

QUE

a. char I u r[8] name[ 5] int age, password; b. cylinder = pi * r * r * h c. cout<< Welcome to my program! ; d. cin>>gred1>>gred2;

QUE

a. // his is program to determine three integer numbers b. int x, y, z, hasil; c. cout<< Enter x value:/n << Enter y value:/n << Enter z value:/n ; d. cin>>x>>y>>z; e. x * y * z = hasil; f. cout<< asil darab ialah: <<hasil;

QUE

    

#include <iostream.h> main() { int number1, number2, number3, total; cout<< Enter first number: ; cin>>number1; cout<< Enter second number: ; cin>>number2; cout<< Enter third number: ; cin>>number3; total = number1*number2*number3; cout<< otal multiplication is: <<total; return 0; }

You might also like