Some good question asked at rgec meerut.You can download their solution at
*www.goelc.blogspot.com/
please provide me better solution for these questions
Phase 1
Q:1‐>WAP TO FIND OUT THAT IS NO IS POWER OF TWO OR NOT. (WITHOUT USING LOOP)
Q:2‐> WAP TO PRINT THE ALL COMBINATION OF STRING “ABC”.
Q:3‐>WAP TO DO THE SUM OF ALL DIGITS OF A NO UNTILL ANS HAS ONLY ONE DIGIT(WITHOUT
USING LOOP)
EX:‐5699
=>5+6+9+9=29
=>2+9=11
=>1+1=2
Q:4‐>WAP TO PRINT STRUCTURE LIKE
EX:‐> THIS IS THE TABLE.
=>THIS IS TABLE
PHASE 2
Q:1‐>WAP TO PRINT THE FILE NAME FROM WHICH PROGRAM IS EXECUTED.
Q:2‐>WAP TO MAKE A STRING PALINDROME
EX:‐>IIT
=> ITI
Q:3‐>WAP TO PRINT SPARSE MATRIX
EX:‐>
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7
*www.goelc.blogspot.com/
please provide me better solution for these questions
Phase 1
Q:1‐>WAP TO FIND OUT THAT IS NO IS POWER OF TWO OR NOT. (WITHOUT USING LOOP)
Q:2‐> WAP TO PRINT THE ALL COMBINATION OF STRING “ABC”.
Q:3‐>WAP TO DO THE SUM OF ALL DIGITS OF A NO UNTILL ANS HAS ONLY ONE DIGIT(WITHOUT
USING LOOP)
EX:‐5699
=>5+6+9+9=29
=>2+9=11
=>1+1=2
Q:4‐>WAP TO PRINT STRUCTURE LIKE
1
2 2
3 3 3
4 4 4 4
Q:5‐>WAP TO REMOVE THE FROM THE SENTENCE ENTER BY THE USER.2 2
3 3 3
4 4 4 4
EX:‐> THIS IS THE TABLE.
=>THIS IS TABLE
PHASE 2
Q:1‐>WAP TO PRINT THE FILE NAME FROM WHICH PROGRAM IS EXECUTED.
Q:2‐>WAP TO MAKE A STRING PALINDROME
EX:‐>IIT
=> ITI
Q:3‐>WAP TO PRINT SPARSE MATRIX
EX:‐>
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7