“penambahan dua angka di c” Kode Jawaban

Tambahkan 2 nomor di C

#include<stdio.h>
int main() {
int a, b, sum;
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
Innocent Impala

penambahan dalam c

/*Program for adding two numbers*/
#include <stdio.h>
int main(){
	int a, b, sum; //declare the variables that will be used, a will store the first number, b second number and sum, the sum.
    printf("Enter the first number: \n"); //Prompts user to enter the first number.
    scanf("%d", &a);//Accepts input and saves it to variable a
    printf("Enter the second number: \n");
    scanf("%d", &b);
    sum = a + b; //Formular to add the two numbers.
    printf("Sum is %d", sum);
}
VinCoD

Program C untuk menambahkan dua angka

Enter two integers: 12
11
12 + 11 = 23
Fair Fly

penambahan dua angka di c

//addition of two numbers
int number1,number2;
puts("Enter two numbers");
scanf("%d%d",&number1,&number2);
printf("addition is :%d",number1+number2)
Colorful Crossbill

penambahan dua angka di c

//test
Colorful Crossbill

Jawaban yang mirip dengan “penambahan dua angka di c”

Pertanyaan yang mirip dengan “penambahan dua angka di c”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya