-using namespace std;
-int main(){
- float nch,nca;
- cout<<"\nEnter the no. of classes held & attended : ";
- cin>>nch>>nca;
- float p=(nca/nch)*100;
- if(p>=75){
- cout<<"The student with "<
-using namespace std;
-int main(){
- int u,r,tot;
- cout<<"\nEnter no.of Units : ";
- cin>>u;
- if((u*100)>1000){
- r=0.1*u*100;
- tot=u*100-r;
- cout<<"Total cost = "<
-using namespace std;
-int main(){
- int age;
- char s,mar;
- cout<<"\nEnter your Age, Sex & Marital Status : ";
- cin>>age>>s>>mar;
- if(s=='F'||s=='f')
- cout<<"Employee Works in Urban Areas";
- else if(s=='M'||s=='m')
- {
- if(age>=20 && age<40)
- cout<<"Employee Works Anywhere";
- else if(age>=40 && age<60)
- cout<<"Employee Works in Urban Areas";
- else
- cout<<"ERROR";
- }
-}
diff --git a/Hima Rani Mathews/if-else/FindValue.cpp b/Hima Rani Mathews/if-else/FindValue.cpp
deleted file mode 100644
index c6aa680..0000000
--- a/Hima Rani Mathews/if-else/FindValue.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include
-using namespace std;
-int main(){
- int x=2,y=5,z=0;
- cout<<(x==2)<<"\n"<<(x!=5)<<"\n"<<(x!=5&&y>=5)<<"\n"<<(z!=0||x==2)<<"\n"<<(!(y<10));
-}
diff --git a/Hima Rani Mathews/if-else/Grade.cpp b/Hima Rani Mathews/if-else/Grade.cpp
deleted file mode 100644
index 7580dd4..0000000
--- a/Hima Rani Mathews/if-else/Grade.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include
-using namespace std;
-int main(){
- int m;
- cout<<"\nEnter the marks : ";
- cin>>m;
- cout<<"Marks : "<=80){
- cout<<"A";
- }
- else if(m<80 && m>=60){
- cout<<"B";
- }
- else if(m<60 && m>=50){
- cout<<"C";
- }
- else if(m<50 && m>=45){
- cout<<"D ";
- }
- else if(m<45 && m>=25){
- cout<<"E ";
- }
- else
- {
- cout<<"F ";
- }
-
-}
-
diff --git a/Hima Rani Mathews/if-else/LeapYear.cpp b/Hima Rani Mathews/if-else/LeapYear.cpp
deleted file mode 100644
index d87d36d..0000000
--- a/Hima Rani Mathews/if-else/LeapYear.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include
-using namespace std;
-int main(){
- int yr;
- cout<<"\nEnter the year : ";
- cin>>yr;
- if(yr%4==0){
- if(yr%100==0){
- if(yr%400==0)
- {
- cout<
-using namespace std;
-int main(){
- float nch,nca;
- char ch;
- cout<<"\nEnter the no. of classes held & attended : ";
- cin>>nch>>nca;
- float p=(nca/nch)*100;
- if(p>=75){
- cout<<"The student with "<>ch;
- if(ch=='Y'||ch=='y')
- cout<<"The student with "<
-using namespace std;
-int main(){
- int sal,yrofs,r,tot;
- cout<<"\nEnter Salary and Year of service : ";
- cin>>sal>>yrofs;
- if(yrofs>=5){
- r=0.5*sal;
- tot=sal+r;
- cout<<"Net Bonus Amount = "<
-using namespace std;
-int main(){
- int a,b,c;
- cout<<"\nEnter ages of three people : ";
- cin>>a>>b>>c;
- int old=(a>b)?(a>c)?a:c:(b>c)?b:c;
- int young=(a
-1.Take values of length and breadth of a rectangle from user and check if it is square or not.
-2.Take two int values from user and print greatest among them.
-3.A shop will give discount of 10% if the cost of purchased quantity is more than 1000.
-Ask user for quantity
-Suppose, one unit will cost 100.
-Judge and print total cost for user.
-4.A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years.
-Ask user for their salary and year of service and print the net bonus amount.
-5.A school has following rules for grading system:
-a. Below 25 - F
-b. 25 to 45 - E
-c. 45 to 50 - D
-d. 50 to 60 - C
-e. 60 to 80 - B
-f. Above 80 - A
-Ask user to enter marks and print the corresponding grade.
-6.Take input of age of 3 people by user and determine oldest and youngest among them.
-7.Write a program to print absolute vlaue of a number entered by user. E.g.-
-INPUT: 1 OUTPUT: 1
-INPUT: -1 OUTPUT: 1
-8.A student will not be allowed to sit in exam if his/her attendence is less than 75%.
-Take following input from user
-Number of classes held
-Number of classes attended.
-And print
-percentage of class attended
-Is student is allowed to sit in exam or not.
-9.Modify the above question to allow student to sit if he/she has medical cause. Ask user if he/she has medical cause or not ( 'Y' or 'N' ) and print accordingly.
-10.If
-x = 2
-y = 5
-z = 0
-then find values of the following expressions:
-a. x == 2
-b. x != 5
-c. x != 5 && y >= 5
-d. z != 0 || x == 2
-e. !(y < 10)
-11.Write a program to check whether a entered character is lowercase ( a to z ) or uppercase ( A to Z ).
-
-
-Level 2
-1.Write a program to check if a year is leap year or not.
-If a year is divisible by 4 then it is leap year but if the year is century year like 2000, 1900, 2100 then it must be divisible by 400.
-2.Ask user to enter age, sex ( M or F ), marital status ( Y or N ) and then using following rules print their place of service.
-if employee is female, then she will work only in urban areas.
-
-if employee is a male and age is in between 20 to 40 then he may work in anywhere
-
-if employee is male and age is in between 40 t0 60 then he will work in urban areas only.
-
-And any other input of age should print "ERROR".
-3.A 4 digit number is entered through keyboard. Write a program to print a new number with digits reversed as of orignal one. E.g.-
-INPUT : 1234 OUTPUT : 4321
-INPUT : 5982 OUTPUT : 2895
diff --git a/Hima Rani Mathews/if-else/Reverse.cpp b/Hima Rani Mathews/if-else/Reverse.cpp
deleted file mode 100644
index 6563e18..0000000
--- a/Hima Rani Mathews/if-else/Reverse.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#include
-using namespace std;
-int main(){
- int a,rev=0,r,b;
- cout<<"\nEnter the integer : ";
- cin>>a;
- b=a;
- while(a!=0){
- r=a%10;
- rev=rev*10+r;
- a=a/10;
- }
- cout<<"Reverse of String "<
-using namespace std;
-int main(){
- char ch;
- cout<<"\nEnter the character : ";
- cin>>ch;
- if(ch>=65 && ch<=90)
- cout<<"\n"<=97 && ch<=122)
- cout<<"\n"<
-using namespace std;
-int main(){
- int a,b;
- cout<<"\nEnter two integers : ";
- cin>>a>>b;
- if(a>b){
- cout<
-using namespace std;
-int main(){
- int l,b;
- cout<<"\nEnter the Length and Breadth : ";
- cin>>l>>b;
- if(l==b){
- cout<<"Square";
- }
- else
- {
- cout<<"Rectangle";
- }
-}
diff --git a/Jai Juneja/.gitignore b/Jai Juneja/.gitignore
deleted file mode 100644
index f47cb20..0000000
--- a/Jai Juneja/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.out
diff --git a/Jai Juneja/if_else_questions/level_1/absolute_value.cpp b/Jai Juneja/if_else_questions/level_1/absolute_value.cpp
deleted file mode 100644
index 500d98d..0000000
--- a/Jai Juneja/if_else_questions/level_1/absolute_value.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num;
- cout << "Give number: ";
- cin >> num;
-
- cout << "Absolute Value: ";
- if (num >= 0)
- cout << num << endl;
- else
- cout << -num << endl;
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/attendance.cpp b/Jai Juneja/if_else_questions/level_1/attendance.cpp
deleted file mode 100644
index c664591..0000000
--- a/Jai Juneja/if_else_questions/level_1/attendance.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-
-#include
-
-using namespace std;
-
-int main() {
- int classesHeld, classesAttended, percent;
-
- cout << "Give number of classes held: ";
- cin >> classesHeld;
- cout << "Give number of classes attended: ";
- cin >> classesAttended;
-
- percent = (classesAttended * 100)/classesHeld;
-
- if (percent >= 75)
- cout << "Student is allowed to sit for exam" << endl;
- else
- cout << "Student is not allowed to sit for exam" << endl;
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/attendance_variation.cpp b/Jai Juneja/if_else_questions/level_1/attendance_variation.cpp
deleted file mode 100644
index c30033a..0000000
--- a/Jai Juneja/if_else_questions/level_1/attendance_variation.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int classesHeld, classesAttended, percent;
-
- cout << "Give number of classes held: ";
- cin >> classesHeld;
- cout << "Give number of classes attended: ";
- cin >> classesAttended;
-
- percent = (classesAttended * 100)/classesHeld;
-
- if (percent >= 75)
- cout << "Student is allowed to sit for exam" << endl;
- else {
- cout << "Do you have medical cause (y/n): ";
- char ch;
- cin >> ch;
- if (ch == 'y')
- cout << "Student is allowed to sit for exam" << endl;
- else
- cout << "Student is not allowed to sit for exam" << endl;
- }
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/bonus_or_not.cpp b/Jai Juneja/if_else_questions/level_1/bonus_or_not.cpp
deleted file mode 100644
index d936581..0000000
--- a/Jai Juneja/if_else_questions/level_1/bonus_or_not.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- float salary, bonus = 0;
- int yearsOfService;
-
- cout << "Give Salary: ";
- cin >> salary;
- cout << "Give years of service: ";
- cin >> yearsOfService;
-
- if (yearsOfService > 5)
- bonus = 0.05 * salary;
-
- cout << "Net Bonus Amount: " << bonus << endl;
-
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/check_case.cpp b/Jai Juneja/if_else_questions/level_1/check_case.cpp
deleted file mode 100644
index 0c3949e..0000000
--- a/Jai Juneja/if_else_questions/level_1/check_case.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- char letter;
- cout << "Give a letter: ";
- cin >> letter;
-
- if (letter>=65 && letter<=90)
- cout << "It is a uppercase letter" << endl;
- else if (letter>=97 && letter<=122)
- cout << "It is a lowercase letter" << endl;
-
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/discount.cpp b/Jai Juneja/if_else_questions/level_1/discount.cpp
deleted file mode 100644
index 4b1d3ee..0000000
--- a/Jai Juneja/if_else_questions/level_1/discount.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int quantity;
- cout << "Give quantity: ";
- cin >> quantity;
-
- int cost = 100 * quantity;
-
- if (cost > 1000)
- cost = 0.9 * cost;
-
- cout << "The price is " << cost;
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/expressions.cpp b/Jai Juneja/if_else_questions/level_1/expressions.cpp
deleted file mode 100644
index 2cbc6ee..0000000
--- a/Jai Juneja/if_else_questions/level_1/expressions.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int x=2, y=5, z=0;
- cout << (x==2) << endl;
- cout << (x!=5) << endl;
- cout << ((x!=5) && (y>=5)) << endl;
- cout << ((z!=0) || (x==2)) << endl;
- cout << !(y<10) << endl;
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/find_grades.cpp b/Jai Juneja/if_else_questions/level_1/find_grades.cpp
deleted file mode 100644
index c396a4a..0000000
--- a/Jai Juneja/if_else_questions/level_1/find_grades.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int marks;
-
- cout << "Give Marks: ";
- cin >> marks;
-
- char grade;
-
- if (marks > 80) // 81 and above
- grade = 'A';
- else if (marks > 60) // 61 - 80
- grade = 'B';
- else if (marks > 50) // 51 - 60
- grade = 'C';
- else if (marks > 45) // 46 - 50
- grade = 'D';
- else if (marks > 25) // 26 - 45
- grade = 'E';
- else // 25 and below
- grade = 'F';
-
- cout << "Your grade is " << grade;
-
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/greatest_number.cpp b/Jai Juneja/if_else_questions/level_1/greatest_number.cpp
deleted file mode 100644
index 128eb86..0000000
--- a/Jai Juneja/if_else_questions/level_1/greatest_number.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num1, num2;
- cout << "Enter two numbers: ";
- cin >> num1 >> num2;
-
- if (num1 > num2)
- cout << num1 << " is greatest" << endl;
- else if (num1 < num2)
- cout << num2 << " is greatest" << endl;
- else
- cout << "Both are equal" << endl;
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/oldest_and_youngest.cpp b/Jai Juneja/if_else_questions/level_1/oldest_and_youngest.cpp
deleted file mode 100644
index b614cf4..0000000
--- a/Jai Juneja/if_else_questions/level_1/oldest_and_youngest.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int ageA, ageB, ageC;
-
- cout << "Give ages of A, B and C: ";
- cin >> ageA >> ageB >> ageC;
-
- int minimum = ageA, maximum = ageA;
- char youngest = 'A', oldest = 'A';
- // for finding youngest
- if (minimum > ageB) {
- youngest = 'B';
- minimum = ageB;
- }
- if (minimum > ageC) {
- youngest = 'C';
- minimum = ageC;
- }
- // for finding oldest
- if (maximum < ageB) {
- oldest = 'B';
- maximum = ageB;
- }
- if (maximum < ageC) {
- oldest = 'C';
- maximum = ageC;
- }
-
- cout << oldest << " is the oldest with age = " << maximum << endl;
- cout << youngest << " is the youngest with age = " << minimum << endl;
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_1/rectangle_or_square.cpp b/Jai Juneja/if_else_questions/level_1/rectangle_or_square.cpp
deleted file mode 100644
index 2743070..0000000
--- a/Jai Juneja/if_else_questions/level_1/rectangle_or_square.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int length, breadth;
- cout << "Give length and breadth: ";
- cin >> length >> breadth;
-
- if (length == breadth)
- cout << "It is a square.." << endl;
- else
- cout << "It is a rectangle.." << endl;
-
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_2/leap_year.cpp b/Jai Juneja/if_else_questions/level_2/leap_year.cpp
deleted file mode 100644
index 11365e2..0000000
--- a/Jai Juneja/if_else_questions/level_2/leap_year.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- unsigned int year;
- cout << "Give the year: ";
- cin >> year;
-
- bool leap = false;
-
- if (year%4 == 0)
- leap = true;
- if (year%100 == 0) {
- leap = false;
- if (year%400 == 0)
- leap = true;
- }
-
- if (leap)
- cout << "It is a leap year";
- else
- cout << "It is not a leap year";
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_2/place_of_service.cpp b/Jai Juneja/if_else_questions/level_2/place_of_service.cpp
deleted file mode 100644
index 385e0ea..0000000
--- a/Jai Juneja/if_else_questions/level_2/place_of_service.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- unsigned int age;
- char sex, maritalStatus;
- cout << "Give Age: ";
- cin >> age;
- cout << "Give Sex(m/f): ";
- cin >> sex;
- cout << "Give marital status(y/n for married/single): ";
- cin >> maritalStatus;
-
- if (sex == 'f')
- cout << "You can work in urban areas only" << endl;
- else if (sex == 'm') {
- if (age>=20 && age<40)
- cout << "You can work anywhere" << endl;
- else if (age>=40 && age<=60)
- cout << "You can work is urban areas only" << endl;
- else
- cout << "ERROR" << endl;
- }
-
- return 0;
-}
diff --git a/Jai Juneja/if_else_questions/level_2/reverse_4digit_num.cpp b/Jai Juneja/if_else_questions/level_2/reverse_4digit_num.cpp
deleted file mode 100644
index 30b2699..0000000
--- a/Jai Juneja/if_else_questions/level_2/reverse_4digit_num.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num;
- cout << "Give a 4-digit number: ";
- cin >> num;
-
- int first = num%10;
- int second = (num/10)%10;
- int third = (num/100)%10;
- int fourth = (num/1000)%10;
-
- cout << "Reversed number: ";
- cout << first*1000 + second*100 + third*10 + fourth;
-
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/even_sum.cpp b/Jai Juneja/loop_questions/even_sum.cpp
deleted file mode 100644
index 0b94625..0000000
--- a/Jai Juneja/loop_questions/even_sum.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int n;
- cout << "Give value of n: ";
- cin >> n;
-
- int sum = 0;
- for (int i = 2; i <= n; i += 2)
- sum += i;
-
- cout << "Sum of all even numbers upto " << n << " is " << sum << endl;
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/find_factors.cpp b/Jai Juneja/loop_questions/find_factors.cpp
deleted file mode 100644
index 82153b4..0000000
--- a/Jai Juneja/loop_questions/find_factors.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num;
- cout << "Give number: ";
- cin >> num;
-
- cout << "The factors are: 1 ";
- for (int i = 2; i <= num/2; i++) {
- if (num%i == 0)
- cout << i << " ";
- }
- cout << num << endl;
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/find_hcf.cpp b/Jai Juneja/loop_questions/find_hcf.cpp
deleted file mode 100644
index ea8672d..0000000
--- a/Jai Juneja/loop_questions/find_hcf.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num1, num2;
- cout << "Give two numbers: ";
- cin >> num1 >> num2;
-
- // assume, mnum2) {
- m = num2;
- n = num1;
- } else {
- m = num1;
- n = num2;
- }
-
- int rem = n%m;
- while (rem != 0) {
- n = m;
- m = rem;
- rem = n%m;
- }
-
- cout << "HCF of " << num1 << " and " << num2 << " is " << m;
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/first_last_digits.cpp b/Jai Juneja/loop_questions/first_last_digits.cpp
deleted file mode 100644
index 1163243..0000000
--- a/Jai Juneja/loop_questions/first_last_digits.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num, firstDigit, lastDigit;
- cout << "Give number: ";
- cin >> num;
-
- lastDigit = num % 10;
- firstDigit = num;
- while (firstDigit >= 10) {
- firstDigit = firstDigit/10;
- }
-
- cout << "First digit: " << firstDigit << endl;
- cout << "Last digit: " << lastDigit << endl;
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/multiplication_table.cpp b/Jai Juneja/loop_questions/multiplication_table.cpp
deleted file mode 100644
index a0fdb2c..0000000
--- a/Jai Juneja/loop_questions/multiplication_table.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int n;
- cout << "Give number for which multiplication table is to be printed: ";
- cin >> n;
-
- for (int i = 1; i < 11; i++) {
- cout << n << " * " << i << " = " << n*i << endl;
- }
-
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/natural_nums.cpp b/Jai Juneja/loop_questions/natural_nums.cpp
deleted file mode 100644
index fbe0b64..0000000
--- a/Jai Juneja/loop_questions/natural_nums.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int n;
- cout << "Give value of n: ";
- cin >> n;
-
- cout << "Natural numbers from 1 to " << n << " are: " << endl;
- for (int i = 1; i <= n; i++) {
- cout << i << ' ';
- }
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/natural_nums_reverse.cpp b/Jai Juneja/loop_questions/natural_nums_reverse.cpp
deleted file mode 100644
index 49f5a7a..0000000
--- a/Jai Juneja/loop_questions/natural_nums_reverse.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int n;
- cout << "Give the value of n: ";
- cin >> n;
-
- cout << "Natural numbers in reverse order from " << n << " to 1 are:" << endl;
- for (int i = n; i > 0; i--) {
- cout << i << ' ';
- }
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/odd_sum.cpp b/Jai Juneja/loop_questions/odd_sum.cpp
deleted file mode 100644
index a95b37a..0000000
--- a/Jai Juneja/loop_questions/odd_sum.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int n, sum = 0;
- cout << "Give value of n: ";
- cin >> n;
-
- for (int i = 1; i <= n; i += 2)
- sum += i;
-
- cout << "Sum of odd numbers upto " << n << " is " << sum << endl;
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/reverse_number.cpp b/Jai Juneja/loop_questions/reverse_number.cpp
deleted file mode 100644
index 36cfa3c..0000000
--- a/Jai Juneja/loop_questions/reverse_number.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num, rem, reversed = 0;
- cout << "Give number: " << endl;
- cin >> num;
-
- int temp = num;
- while (temp) {
- rem = temp % 10;
- reversed = reversed*10 + rem;
- temp /= 10;
- }
-
- cout << reversed;
- return 0;
-}
diff --git a/Jai Juneja/loop_questions/swap_first_last.cpp b/Jai Juneja/loop_questions/swap_first_last.cpp
deleted file mode 100644
index 6ed4ce4..0000000
--- a/Jai Juneja/loop_questions/swap_first_last.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include
-
-using namespace std;
-
-int main() {
- int num;
- cout << "Give number: ";
- cin >> num;
-
- int numOfDigits = 1, firstDigit = num, lastDigit = num%10;
- while (firstDigit >= 10) {
- firstDigit /= 10;
- numOfDigits++;
- }
-
- int swappedNum = num - lastDigit + firstDigit; // swapping last digit with first digit
- int temp = 1; // power of 10 for first digit
- for (int i = 1; i < numOfDigits; i++)
- temp *= 10;
- swappedNum = swappedNum + (lastDigit - firstDigit)*temp; // swapping first digit with last digit
-
- cout << "After swapping first and last digits, the number is " << swappedNum << endl;
- return 0;
-}
diff --git a/Ritika/If-else/absolute/absolute.cpp b/Ritika/If-else/absolute/absolute.cpp
deleted file mode 100644
index 5d88ade..0000000
--- a/Ritika/If-else/absolute/absolute.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include
-
-using namespace std;
-
-int main()
-{
- int x;
- cout<<"Enter a number:"<> x;
- if (x > 0)
- {
- cout << x << endl;
- }
- else if (x < 0)
- {
- cout << -x << endl;
- }
- else
- cout << 0 << endl;
- return 0;
-}
diff --git a/Ritika/If-else/bonus/bonus.cpp b/Ritika/If-else/bonus/bonus.cpp
deleted file mode 100644
index bff43a3..0000000
--- a/Ritika/If-else/bonus/bonus.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include