Professional Documents
Culture Documents
Name: Siraj Uddin Kurd Section: 2-A COURSE: Programming Fundamentals Labs INSTRUCTOR: Sir Abdul Rafay DATE: 6-4 - 20201
Name: Siraj Uddin Kurd Section: 2-A COURSE: Programming Fundamentals Labs INSTRUCTOR: Sir Abdul Rafay DATE: 6-4 - 20201
CET # 1
Q1: \\Code\\
BEE 2A Siraj ud din 02-133202-051
#include <iostream>
using namespace std; //the answer to each question depends upon what kind of marvel fan are you…
int main()
int K;
int J;
int H;
cout<<"\"What is the reason uncle ben dies? \" says the teacher.\n If you dont answer this question
you wont get a single mark...\n";
cin >>K ;
if( K == 1)
else if ( K !=1 )
cout<<"\"how did Hulk evolve? \" says the teacher.\n If you dont answer this question you wont get a
single mark...\n";
cin >> J ;
if( J == 2)
{
BEE 2A Siraj ud din 02-133202-051
else if ( J != 2 )
cout<<"\"where was ant man? \" says the teacher.\n If you dont answer this question you wont get a
single mark...\n";
cin >> H ;
if( H == 3)
else if ( H!= 3 )
return 0;
}
BEE 2A Siraj ud din 02-133202-051
BEE 2A Siraj ud din 02-133202-051
chart:
Inpuinput=
If thw answer is
right
true Output=
+2
A
BEE 2A Siraj ud din 02-133202-051
Flow
start
If the answer
is wrong
fails
Output=
-2
END