Practical
Practical
ہو۔
س۔ 1حصہ ا :ایک htmlپیج بنائیے جس میں دو ویب پیجز کو ایک دوسرے کے ساتھ ٹیکسٹ لنک کیا گیا ہو۔
End
End
End
End
Group No 6
س1۔ (حصہ
الف)
حصہ ( :ب) ۔ اس کو ڈ کو ۔ html.فائل کے طور پر
محفوظ کر کے براؤزر میں اوپن کر کے ممتحن کو دکھایا۔
س1۔ (حصہ
الف)
حصہ ( :ب) ۔ اس کو ڈ کو ۔ html.فائل کے طور پر
محفوظ کر کے براؤزر میں اوپن کر کے ممتحن کو دکھایا۔
س1۔ (حصہ
الف)
حصہ ( :ب) ۔ اس کو ڈ کو ۔ html.فائل کے طور پر
محفوظ کر کے براؤزر میں اوپن کر کے ممتحن کو دکھایا۔
س1۔ (حصہ
الف)
حصہ ( :ب) ۔ اس کو ڈ کو ۔ html.فائل کے طور پر
محفوظ کر کے براؤزر میں اوپن کر کے ممتحن کو دکھایا۔
)۔(ج2`س۔ پروگرام کا: ) حصہ (ب2س۔ )۔ (الف2س۔
#include<stdio.h>
step 1: startStart کر کےRUN میںIDE کوڈ
void main()
step 2: input n1, n2
{ ممتحن کو دکھایا
step 3 calculate product = n1* n2
int product, n1, n2;
step 4: output
Input n1product
, n2
printf("\n Enter first digit : ");
step 5: end
scanf("%d", &n1);
printf("\n Enter second digit : ");
product = n1* n2 scanf("%d", &n2);
product = n1* n2;
printf("\n product of first and second
Output product digit is : %d", product);
}
End
End
End
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1: start پروگرام کا: ) (ب#include <stdio.h>
int main ()
step 2: input x=5, y = 10 میںIDE کوڈ
{
step 3: print value of x and y کر کےRUN int x = 5;
step 4: set x = x + y, y = x – y,
x = x - y; ممتحن کو دکھایا int y = 10;
step 5: print value of x and y printf("Before swapping: x = %d, y = %d\
after swapping n", x, y);
step 6: end // Swap values without using a third
variable
x = x + y;
y = x - y;
x = x - y;
printf("After swapping: x = %d, y = %d\
n", x, y);
}
Output total
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1: start پروگرام: ) (ب#include<stdio.h>
Start void main()
step 2: Enter book1 and book 2 marks میںIDE { کا کوڈ
step 3 total marks = book1 marks + book 2 marks کر کےRUN int b1 , b2, total;
step 4: output total marks
Enter book1 and book printf("Enter First & second Book marks”);
step 5: end ممتحن کو دکھایا scanf(“%d”, &b1, &b2);
2 marks
total = b1+b2;
printf("Total Marks are %d”, total);
Total = book1 + book2 }
Output total
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1: start پروگرام: ) (ب#include<stdio.h>
Start void main()
step 2: Enter book1 and book 2 marks میںIDE { کا کوڈ
step 3 total marks = book1 marks + book 2 marks کر کےRUN int b1 , b2, total;
step 4: output total marks
Enter book1 and book printf("Enter First & second Book marks”);
step 5: end ممتحن کو دکھایا scanf(“%d”, &b1, &b2);
2 marks
total = b1+b2;
printf("Total Marks are %d”, total);
Total = book1 + book2 }
Output total
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1: start پروگرام: ) (ب#include<stdio.h>
Start void main()
step 2: Enter book1 and book 2 marks میںIDE { کا کوڈ
step 3 total marks = book1 marks + book 2 marks کر کےRUN int b1 , b2, total;
step 4: output total marks
Enter book1 and book printf("Enter First & second Book marks”);
step 5: end ممتحن کو دکھایا scanf(“%d”, &b1, &b2);
2 marks
total = b1+b2;
printf("Total Marks are %d”, total);
Total = book1 + book2 }
Output total
End
two
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
two
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
two
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1:Start
start پروگرام: ) (ب#include<stdio.h>
step 2: Enter year میںIDE کا کوڈ void main()
step 3 if year mod4 =0 then {
Enter Year Leap Year کر کےRUN
step 4: output int year;
step 5: end ممتحن کو دکھایا printf("Enter Year”);
If year scanf(“%d”, &year);
mod 4 = 0 if(year%4==0)
Output Leap Year printf("%year is a Leap Year” year);
}
Output total
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1:Start
start پروگرام: ) (ب#include<stdio.h>
step 2: Enter year میںIDE کا کوڈ void main()
step 3 if year mod4 =0 then {
Enter Year Leap Year کر کےRUN
step 4: output int year;
step 5: end ممتحن کو دکھایا printf("Enter Year”);
If year scanf(“%d”, &year);
mod 4 = 0 if(year%4==0)
Output Leap Year printf("%year is a Leap Year” year);
}
Output total
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1:Start
start پروگرام: ) (ب#include<stdio.h>
step 2: Enter year میںIDE کا کوڈ void main()
step 3 if year mod4 =0 then {
Enter Year Leap Year کر کےRUN
step 4: output int year;
step 5: end ممتحن کو دکھایا printf("Enter Year”);
If year scanf(“%d”, &year);
mod 4 = 0 if(year%4==0)
Output Leap Year printf("%year is a Leap Year” year);
}
Output total
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1:Start
start پروگرام: ) (ب#include<stdio.h>
step 2: Enter year میںIDE کا کوڈ void main()
step 3 if year mod4 =0 then {
Enter Year Leap Year کر کےRUN
step 4: output int year;
step 5: end ممتحن کو دکھایا printf("Enter Year”);
If year scanf(“%d”, &year);
mod 4 = 0 if(year%4==0)
Output Leap Year printf("%year is a Leap Year” year);
}
Output total
End
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1:Start
start پروگرام: ) (ب#include<stdio.h>
step 2: Enter your age between 13-19 میںIDE کا کوڈvoid main ()
step 3 if age >= 13 and <=19 {
Enter age Teenager کر کےRUN int age;
step 4: output
step 5: end ممتحن کو دکھایا printf("Enter your age between 13-19”);
scanf(“%d”, &age);
If age>=13
and age<=19
if(age>=13 && age <=19)
printf("Teenager”);
Output Teenager }
Output total
Output total
Output total
Output total
End
)۔(ج2`س۔ حصہ2س۔ )۔ (الف2س۔
step 1: start Start پروگرام: ) (ب#include<stdio.h>
step 2: Enter Marks percentage میںIDE کا کوڈvoid main ()
step 3 if marks percentage >=50 {
کر کےRUN float perc;
stepEnter your marks percentage
4: output Pass
step 5: end ممتحن کو دکھایا printf("Enter your marks Percentage”);
scanf(“%d”, &perc);
If perc >=50 if(perc >= 50)
printf("Pass”);
Output Pass }
End
End
End
End
` حصہ ب۔ کوڈ کو بطور htmlمحفوظ کر کے ویب براؤزر میں کھول کر ممتحن کو دکھایا۔
step 1: start )۔(ج2س۔ پروگرام کا: ) حصہ (ب2س۔ )۔ (الف2س۔
#include<stdio.h>
step 2: input any number کر کےRUN میںIDE کوڈ
void main()
step 3 calculate remainder = number mod 2
{ ممتحن کو دکھایا
step 4: if remainder = 0 then print number is even else
int n;
print number is Not even
printf("\n Enter the any integer : ");
step 5: end
scanf("%d", &n);
if(n%2==0)
printf(“Number is even”);
else
printf(“Number is not even”);
}
step 1: start )۔(ج2س۔ س۔ پروگرام کا: ) حصہ (ب2س۔ )۔ (الف2س۔
#include<stdio.h>
step 2: input any number کر کےRUN میںIDE کوڈ
void main()
step 3 calculate remainder = number mod 2
{ ممتحن کو دکھایا
step 4: if remainder = 0 then print number is even else
int n;
print number is Not even
printf("\n Enter the any integer : ");
step 5: end
scanf("%d", &n);
if(n%2==0)
printf(“Number is even”);
else
printf(“Number is not even”);
}
step 1: start )۔(ج2۔( س۔2س۔ پروگرام کا: ) حصہ (ب2س۔ )۔ (الف2س۔
#include<stdio.h>
step 2: input any number کر کےRUN میںIDE کوڈ
void main()
step 3 calculate remainder = number mod 2
{ ممتحن کو دکھایا
step 4: if remainder = 0 then print number is even else
int n;
print number is Not even
printf("\n Enter the any integer : ");
step 5: end
scanf("%d", &n);
if(n%2==0)
printf(“Number is even”);
else
printf(“Number is not even”);
}
i=i+2
End
i=i+2
End
i=i+2
End
i=i+2
End
س۔ 1حصہ ب۔ hmtlپیج کو ویب براؤزر میں اوپن کر کے ممتحن کو دکھایا۔