Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

#include <iostream> using namespace std; int main(){ int sum1 = 100+50; int sum2 = sum1+250; int sum3 = sum2+sum2; cout<< sum1 << "\n"; cout<< sum2 << "\n"; cout<< sum3 << "\n"; return 0; }

Sleepy Sardine answered on September 22, 2021 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • #include < iostream> using namespace std; int main() { cout <<" Hello World!" << endl; cout << " My name is Pearl" << endl; return 0; }
  • s=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()
  • #include <iostream> using namespace std; int main() { for(int i=3;i!=0; i--) { count<<i--<<" "; } }
  • #include <iostream> #include <stdio.h> using namespace std; int main() { int a[5]; a[0]=12; a[1]=13; a[2]=14; a[3]=15;
  • #include<iostream> using namespace std; int main() { int arr[6], i, elem; cout<<"Enter 5 Array Elements: "; for(i=0; i<5; i++) cin>>arr[i]; cout<<"\nEnter Element to Insert: "; cin>>elem; arr[i] = elem; cout<<"\nThe New
  • #include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; if (a>=b) { cout<<"YES"<<endl; } else { cout<<"NO"<<endl; }return 0; }
  • 1. Sum of integers between ‘a’ and ‘b’#
  • #include<iostream> using namespace std; int print_3n_plus_1(int n) { if (n == 1) return 1; if (n % 2 == 0) print_3n_plus_1(n / 2) + 1; else print_3n_plus_1(3 * n + 1) + 1; } int main() { int m; m=print_3n_plus_1(6); cout << m; return 0;
  • #include <iostream> using namespace std; void printStars (int blanks, int starsInLine) int main() { int count; for (count = 1; count <= blanks; count++) cout << ' '; for (count = 1; count <= starsInLine; count++) cou
  • #include <iostream> #include <cmath> bool approx_equals(double a, double b){ if((a - b <= 0.001) || (a - b <= -0.001)){ return true; } return false; } int main(){ double a, b; std::cout << "Enter two decimal point numbers :\
  • find error #include <iostream> using namespace std; int main() { int arr[] = {5, 1, 4, 2, 3}; int n = sizeof(arr) / sizeof(arr[0]); for (int i = 1; i <= n - 1; i++) { for (int j = 0; j < n - 1; i++) { if (arr[j

  • #include <iostream> using namespace std; int main(){ int sum1 = 100+50; int sum2 = sum1+250; int sum3 = sum2+sum2; cout<< sum1 << "\n"; cout<< sum2 << "\n"; cout<< sum3 << "\n"; return 0; }

    0
    Popularity 1/10 Helpfulness 1/10 Language cpp
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Sep 22 2021
    Sleepy Sardine
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.