Sunday, 10 January 2021

Write a Program in C++ to find Sum of 2 Numbers using assignment statement.

 //Write a Program in C++ to find Sum of 2 Numbers using assignment statement.

#include<iostream>

using namespace std;

main()

{

    int a=10,b=20,sum;

    sum=a+b;

    cout<<"Sum= "<<sum;

}

No comments:

Post a Comment

Java Program to count the total number of characters in a string

 //Java Program to count the total number of characters in a string import java.util.*; public class CountChars {     public static void mai...