Wipro NTH Coding Question- 23

4 comments on “Wipro NTH Coding Question- 23”


  • Siri

    #include
    int main()
    {
    int a,b;
    scanf(“%d”,&a);
    printf(“result is %d”,a<<3);
    return 0;
    }


    • Arpan

      #include
      using namespace std;
      int main()
      {
      int res=0;
      for(int i=1;i<=10;i++)
      {
      res=i<<3;
      cout<<res<<endl;
      }
      return 0;
      }


    • Itika

      #include
      main()
      {
      int n;
      printf(“Enter the number to multiply: “);
      scanf(“%d”, &n);
      printf(“8 multiplied by %d is %d”, n, n<<3);
      }